1
0
Fork 0

feat: group config & rules in help

This commit is contained in:
ssube 2019-06-17 08:19:35 -05:00
parent c09d135fed
commit da4274966a
1 changed files with 3 additions and 0 deletions

View File

@ -13,16 +13,19 @@ const CONFIG_ARGS_PATH = 'config-path';
const RULE_OPTION: Options = { const RULE_OPTION: Options = {
default: [], default: [],
group: 'Rules:',
type: 'array', type: 'array',
}; };
const MAIN_ARGS = usage(`Usage: $0 <mode> [options]`) const MAIN_ARGS = usage(`Usage: $0 <mode> [options]`)
.option(CONFIG_ARGS_NAME, { .option(CONFIG_ARGS_NAME, {
default: `.${VERSION_INFO.app.name}.yml`, default: `.${VERSION_INFO.app.name}.yml`,
group: 'Config:',
type: 'string', type: 'string',
}) })
.option(CONFIG_ARGS_PATH, { .option(CONFIG_ARGS_PATH, {
default: [], default: [],
group: 'Config:',
type: 'array', type: 'array',
}) })
.option('coerce', { .option('coerce', {