remove default boolean values

This commit is contained in:
Kim Biesbjerg 2019-09-16 20:39:02 +02:00
parent 4d3a3529b8
commit 1eb1d0092d

View File

@ -68,31 +68,26 @@ export const cli = yargs
.option('replace', { .option('replace', {
alias: 'r', alias: 'r',
describe: 'Replace the contents of output file if it exists (Merges by default)', describe: 'Replace the contents of output file if it exists (Merges by default)',
default: false,
type: 'boolean' type: 'boolean'
}) })
.option('sort', { .option('sort', {
alias: 's', alias: 's',
describe: 'Sort strings in alphabetical order when saving', describe: 'Sort strings in alphabetical order when saving',
default: false,
type: 'boolean' type: 'boolean'
}) })
.option('clean', { .option('clean', {
alias: 'c', alias: 'c',
describe: 'Remove obsolete strings when merging', describe: 'Remove obsolete strings when merging',
default: false,
type: 'boolean' type: 'boolean'
}) })
.option('key-as-default-value', { .option('key-as-default-value', {
alias: 'k', alias: 'k',
describe: 'Use key as default value for translations', describe: 'Use key as default value for translations',
default: false,
type: 'boolean' type: 'boolean'
}) })
.option('null-as-default-value', { .option('null-as-default-value', {
alias: 'n', alias: 'n',
describe: 'Use null as default value for translations', describe: 'Use null as default value for translations',
default: false,
type: 'boolean' type: 'boolean'
}) })
.conflicts('key-as-default-value', 'null-as-default-value') .conflicts('key-as-default-value', 'null-as-default-value')