1
0
Fork 0

feat: short aliases for common options (fixes #145)

This commit is contained in:
ssube 2019-11-12 08:27:27 -06:00
parent 705af893a3
commit f367291540
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 9 additions and 2 deletions

View File

@ -124,8 +124,14 @@ export async function parseArgs(argv: Array<string>): Promise<ParseResults> {
default: 'yaml',
type: 'string',
},
'include-level': RULE_OPTION,
'include-name': RULE_OPTION,
'include-level': {
...RULE_OPTION,
alias: ['l', 'level'],
},
'include-name': {
...RULE_OPTION,
alias: ['n', 'name'],
},
'include-tag': {
...RULE_OPTION,
alias: ['t', 'tag'],
@ -155,6 +161,7 @@ export async function parseArgs(argv: Array<string>): Promise<ParseResults> {
},
})
.help()
.alias('help', 'h')
.version(VERSION_INFO.package.version)
.alias('version', 'v');