Open
Description
Lines 150 to 152 in 1cdf3e4
The early return here will break the following:
const prog = sade('cool-cli', true).version('1.0.0').describe('Some cool CLI.')
const {args} = prog.parse(process.argv, {lazy: true})
if (args.something) {
// do stuff
}
This is inconsistent with the documentation:
Lines 638 to 653 in 1cdf3e4
One solution may be to return:
{
args: [],
name: '',
handler: undefined,
helpOrVersion: true // indicates the user passed one of the options
}
Metadata
Metadata
Assignees
Labels
No labels