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 = {
default: [],
group: 'Rules:',
type: 'array',
};
const MAIN_ARGS = usage(`Usage: $0 <mode> [options]`)
.option(CONFIG_ARGS_NAME, {
default: `.${VERSION_INFO.app.name}.yml`,
group: 'Config:',
type: 'string',
})
.option(CONFIG_ARGS_PATH, {
default: [],
group: 'Config:',
type: 'array',
})
.option('coerce', {