Skip to content

Commit

Permalink
feat(crwrsc): Print hidden flags when running with both --help and --…
Browse files Browse the repository at this point in the history
…verbose
  • Loading branch information
Tobbe committed Sep 15, 2024
1 parent c29e829 commit edf9207
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/create-redwood-rsc-app/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ export function initConfig() {
console.log('--help is not implemented yet')
console.log('PR welcome!')
console.log()
if (args.find((arg) => arg === '--verbose' || arg === '-v')) {
console.log('Hidden flags:')
console.log(
'--npx: Used during development to simulate running from _npx/',
)
console.log(
'--no-check-latest: Used when relaunching, to prevent infinite ' +
'relauch loop',
)
}
} else if (arg === '--version' || arg === '-V') {
config.printVersion = true
} else if (arg.startsWith('--template') || arg.startsWith('-t')) {
Expand Down

0 comments on commit edf9207

Please sign in to comment.