I have the following code
export const program = new Command();
program.version('0.0.1');
program
.command('groups')
.command('create')
.action(() => console.log('creating'))
.command('delete')
.action(() => console.log('deleting-all'))
program.parse(process.argv)
What I want to achieve is something like
groups create
and groups delete
The code however chains that delete to the create. It recognizes groups create
and groups create delete
(which I dont want) but does not recognize the groups delete
foo groups something other create
? – Simpleton