Skip to content
Permalink
Browse files

Add enum options to the CLI help

  • Loading branch information...
Jakub Musik
Jakub Musik committed Sep 26, 2018
1 parent 8f65f6a commit 2d5343069e3ad433645d94a94d47a1e03a2c1777
Showing with 4 additions and 4 deletions.
  1. +2 −2 build/services/cli/index.js
  2. +2 −2 src/services/cli/index.ts
@@ -21,10 +21,10 @@ function configureCli() {
return yargs
.usage('Usage: generate [-f "format"] [-n "filename"] [-p "path"]')
.command('init', 'Generates config file with token for google auth')
.option('cf', { alias: 'config-format', default: 'env', describe: 'Config format type', type: 'string' })
.option('cf', { alias: 'config-format', default: 'env', describe: 'Config format type', type: 'string', choices: ['env', 'json'] })
.command('generate', 'Generate file with translations')
.required(1, 'generate')
.option('f', { alias: 'format', default: 'json', describe: 'Format type', type: 'string' })
.option('f', { alias: 'format', default: 'json', describe: 'Format type', type: 'string', choices: ['android', 'json', 'ios', 'yml', 'xlf'] })
.option('p', { alias: 'path', default: '.', describe: 'Path for saving file', type: 'string' })
.option('l', {
alias: 'language',
@@ -29,10 +29,10 @@ function configureCli(): Arguments {
return yargs
.usage('Usage: generate [-f "format"] [-n "filename"] [-p "path"]')
.command('init', 'Generates config file with token for google auth')
.option('cf', { alias: 'config-format', default: 'env', describe: 'Config format type', type: 'string' })
.option('cf', { alias: 'config-format', default: 'env', describe: 'Config format type', type: 'string', choices: ['env','json'] })
.command('generate', 'Generate file with translations')
.required(1, 'generate')
.option('f', { alias: 'format', default: 'json', describe: 'Format type', type: 'string' })
.option('f', { alias: 'format', default: 'json', describe: 'Format type', type: 'string', choices: ['android','json','ios','yml','xlf'] })
.option('p', { alias: 'path', default: '.', describe: 'Path for saving file', type: 'string' })
.option('l', {
alias: 'language',

0 comments on commit 2d53430

Please sign in to comment.
You can’t perform that action at this time.