You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ moduleBinary
moduleBinary <foo>
Description
Positionals:
foo [cadena de caracteres]
Opciones:
--help Muestra ayuda [booleano]
--version Muestra número de versión [booleano]
Hacen falta argumentos no-opcionales: Número recibido 0, necesita por lo menos 1
foo description is hidden and bar option is hidden, but when call --help option can see all texts:
$ moduleBinary --help
moduleBinary <foo>
Description
Positionals:
foo Foo [cadena de caracteres]
Opciones:
--help Muestra ayuda [booleano]
--version Muestra número de versión [booleano]
-b, --bar Bar
Version: 17.3.1.
The text was updated successfully, but these errors were encountered:
I believe this problem is solved in yargs 17.4. Prior to that version, there was a bug with failed default commands and the resulting usage output. If I remember correctly, user-defined args were missing descriptions, and optional args were omitted completely. PR
Options:
--help Show help [boolean]
--version Show version number [boolean]
--arg1 [string] [required]
After the fix:
Options:
--help Show help [boolean]
--version Show version number [boolean]
--arg1 arg1 desc (default command) [string] [required]
--arg2 arg2 desc (default command) [string]
By example:
The result is:
foo
description is hidden andbar
option is hidden, but when call--help
option can see all texts:Version:
17.3.1
.The text was updated successfully, but these errors were encountered: