Closed Embraser01 closed 6 months ago
Helllo @Embraser01, the issue seems unreproducible. Well, the error still the same with yarn dlx @typeoas/cli generator -h
but it's only because there is no command matching the path generator
. If I use yarn dlx @typeoas/cli generate -h
I have no issue.
For the case where you were able to reproduce the issue in the mentioned test, I think it's due the missing option detailed: true
in the cli.usage
calls.
Couldn't reproduce, I must have been tired 😅, let me close this
I'm using
clipanion
in https://github.com/Embraser01/typoas and the-h
flag at the end of a command likeyarn dlx @typoas/cli generator -h
display:instead of displaying the usage of the command. I succeeded to reproduce the bug in the
should display the usage per-command
:https://github.com/arcanis/clipanion/blob/master/tests/advanced.test.ts#L95-L110
By changing it to:
I found 2 issues here: