Closed lightaffaire closed 1 year ago
Hi @lightaffaire
Options are expanded in the help message of specific commands, for example:
$ npx mudslide@latest send --help
Usage: mudslide send [options] <recipient> <message>
Send message
Options:
-b, --button <text> Button text (repeatable option) (default: [])
--footer <text> Footer text
-h, --help display help for command
Does this answer your question?
now you explain it here i can understand but this will be a support nightmare going forwards. A suggestion:
Add 'mudslide@latest command --help' to basic help text and also list the commands before the options... also the --button text needs more explanation:
Usage: Usage: mudslide [options] [command]
Commands:
login Login to WhatsApp
logout Logout from WhatsApp
me Show current user details
groups List all your groups
send [options]
Options:
-V, --version output the version number
-c, --cache
Examples: mudslide@latest command --help
Hi @lightaffaire
The options in the global help are global options, so it's logical to have them before the commands (also, the order is not easy to change as it's enforced by the CLI library I'm using).
I've added some example command at the end of the global help, as you suggested, thanks!
KR, Rob
Options: area of help should be expanded to list:
--caption --footer