feat: group config & rules in help
This commit is contained in:
parent
c09d135fed
commit
da4274966a
|
@ -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', {
|
||||||
|
|
Loading…
Reference in New Issue