Merge branch 'dev' of https://github.com/tw93/Pake into dev
This commit is contained in:
6
bin/cli.ts
vendored
6
bin/cli.ts
vendored
@@ -173,11 +173,13 @@ program
|
|||||||
.configureHelp({
|
.configureHelp({
|
||||||
sortSubcommands: true,
|
sortSubcommands: true,
|
||||||
optionTerm: (option) => {
|
optionTerm: (option) => {
|
||||||
if (option.flags === '-v, --version' || option.flags === '-h, --help') return '';
|
if (option.flags === '-v, --version' || option.flags === '-h, --help')
|
||||||
|
return '';
|
||||||
return option.flags;
|
return option.flags;
|
||||||
},
|
},
|
||||||
optionDescription: (option) => {
|
optionDescription: (option) => {
|
||||||
if (option.flags === '-v, --version' || option.flags === '-h, --help') return '';
|
if (option.flags === '-v, --version' || option.flags === '-h, --help')
|
||||||
|
return '';
|
||||||
return option.description;
|
return option.description;
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user