ankermake-m5-protocol
ankermake-m5-protocol copied to clipboard
Ankerctl command line should give list of commands even if -v or -p 1 etc options are given but no command is given.
Describe the bug
ankerctl.py -v
ankerctl.py -p 1
ankerctl.py
produce different outputs. Only the last one shows the commands, the first two just say there was error, use -h to see full usage.
To Reproduce
ankerctl.py -v
Expected behavior
Current returns
Usage: ankerctl.py [OPTIONS] COMMAND [ARGS]...
Try 'ankerctl.py -h' for help.
Error: Missing command.
should return
Options:
--pppp-dump <file.log> Enable logging of PPPP data to <file.log>
-k, --insecure Disable TLS certificate validation
-v, --verbose Increase verbosity
-q, --quiet Decrease verbosity
-p, --printer INTEGER Select printer number
-h, --help Show this message and exit.
Commands:
config View and update configuration
http Low-level http api access
mqtt Low-level mqtt api access
pppp Low-level pppp api access
webserver Built-in webserver support
Desktop (please complete the following information):
- OS: windows