Title: CLI accepts flag-like values for --single-user-name without warning · Issue #103 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: CLI accepts flag-like values for --single-user-name without warning · Issue #103 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: CLI accepts flag-like values for --single-user-name without warning · Issue #103 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Description When running JSS with --single-user-name followed directly by another flag (like --idp), the CLI silently accepts the flag as the username value instead of warning or erroring. Steps to Reproduce jss start --single-user-name ...
Open Graph Description: Description When running JSS with --single-user-name followed directly by another flag (like --idp), the CLI silently accepts the flag as the username value instead of warning or erroring. Steps to...
X Description: Description When running JSS with --single-user-name followed directly by another flag (like --idp), the CLI silently accepts the flag as the username value instead of warning or erroring. Steps to...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/103
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CLI accepts flag-like values for --single-user-name without warning","articleBody":"## Description\n\nWhen running JSS with `--single-user-name` followed directly by another flag (like `--idp`), the CLI silently accepts the flag as the username value instead of warning or erroring.\n\n## Steps to Reproduce\n\n```bash\njss start --single-user-name --idp --idp-issuer https://example.com/\n```\n\n## Expected Behavior\n\nThe CLI should either:\n1. Error with a message like: `Error: --single-user-name requires a value`\n2. Or warn: `Warning: username \"--idp\" looks like a flag. Did you forget to provide a value?`\n\n## Actual Behavior\n\n- JSS silently uses `--idp` as the username\n- The `--idp` flag is not recognized as enabling the identity provider\n- The OIDC endpoints (`/.well-known/openid-configuration`) return 404\n- Users see confusing errors like: `Dynamic Registration could not be completed because the issuer has no registration endpoint`\n\nThe startup message shows:\n```\nSingle-user: --idp (registration disabled)\n```\n\n...indicating `--idp` was interpreted as the username, not as a flag.\n\n## Suggested Fix\n\nAdd validation in the CLI argument parsing:\n\n```javascript\nif (username \u0026\u0026 username.startsWith('--')) {\n console.error(`Error: --single-user-name value \"${username}\" looks like a flag.`);\n console.error('Did you forget to provide a username? Example: --single-user-name melvin');\n process.exit(1);\n}\n```\n\n## Environment\n\n- JSS version: 0.0.79\n- Node.js: v22.21.0","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-20T11:13:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/103/JavaScriptSolidServer/issues/103"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1a5a6001-a956-6072-3d1e-c7ff19233f2f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D3DE:3BE04B:454FDA:5F6AC1:69774E10 |
| html-safe-nonce | 13f9fa3df825ff00f4c7bc54f7856651e1194b2e98f5ec060ffd5340987c8c92 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEM0RFOjNCRTA0Qjo0NTRGREE6NUY2QUMxOjY5Nzc0RTEwIiwidmlzaXRvcl9pZCI6IjYxNTMyNjQ1ODU5NTIwMDUyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a071ed79bde676919609c7de84d6cc51c97778b8eb7de66b6572403b11c03cf9 |
| hovercard-subject-tag | issue:3833249233 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/103/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8081e1dc21c1720a665a60f603f24e404deb991753e3f8d68e170313c1f83087/JavaScriptSolidServer/JavaScriptSolidServer/issues/103 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8081e1dc21c1720a665a60f603f24e404deb991753e3f8d68e170313c1f83087/JavaScriptSolidServer/JavaScriptSolidServer/issues/103 |
| og:image:alt | Description When running JSS with --single-user-name followed directly by another flag (like --idp), the CLI silently accepts the flag as the username value instead of warning or erroring. Steps to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width