Open webNeat opened 3 days ago
Yup, it indeed looks like a bug. Ideally this line of code https://github.com/adonisjs/ace/blob/13.x/src/kernel.ts#L335 should be after the shortcircuit
conditional but no idea why I have put it before it.
Lemme run some tests and then push a fix
Package version
13.3.0
Describe the bug
Hello,
I am trying to use
ace
to build a cli tool outside of Adonis. Inspired by the toolkit command I wrote the following code:My understanding is that this part makes the flag
--help
available for all commands:However, when I run
node --import tsx main.ts demo --help
I get the following error:Note the error at the end of the output.
This only happens when my
Demo
command has more than one argument.Am I doing something wrong here?
Reproduction repo
https://github.com/webNeat/adonis-ace-bug