Improve CLI help (#1025)

* launch option changes

* more CLI help improvements

* change plot help

* additional changes requested

* change metavars for options and subcommand
This commit is contained in:
Bruce Martin
2019-11-14 13:02:40 -08:00
committed by GitHub
parent 5ea9ac8a9e
commit b284e6f820
4 changed files with 123 additions and 56 deletions
+9
View File
@@ -24,3 +24,12 @@ def is_port_available(host, port):
except socket.error:
pass
return is_available
def sort_options(command):
"""
Helper for the click options - will sort options in a command, and can
be used as a decorator.
"""
command.params.sort(key=lambda p: p.name)
return command