Skip to content

Commit

Permalink
Merge pull request #555 from jtoar/fix-yargs-help-message
Browse files Browse the repository at this point in the history
Fix db/generate (nested command-dirs) help messages
  • Loading branch information
thedavidprice committed May 22, 2020
2 parents 4cd8dfa + eea7007 commit af27052
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/commands/db.js
Expand Up @@ -3,4 +3,4 @@ export const aliases = ['database']
export const desc = 'Database tools.'

export const builder = (yargs) =>
yargs.commandDir('./dbCommands').demandCommand().argv
yargs.commandDir('./dbCommands').demandCommand()
2 changes: 1 addition & 1 deletion packages/cli/src/commands/generate.js
Expand Up @@ -3,4 +3,4 @@ export const aliases = ['g']
export const desc = 'Save time by generating boilerplate code.'

export const builder = (yargs) =>
yargs.commandDir('./generate', { recurse: true }).demandCommand().argv
yargs.commandDir('./generate', { recurse: true }).demandCommand()
3 changes: 2 additions & 1 deletion packages/cli/src/index.js
Expand Up @@ -19,4 +19,5 @@ yargs
'yarn rw g page home /',
"\"Create a page component named 'Home' at path '/'\""
)
.demandCommand().argv
.demandCommand()
.strict().argv

0 comments on commit af27052

Please sign in to comment.