mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-28 17:38:12 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user