mirror of https://github.com/docker/compose.git
Added code to output the top level command options if docker-compose help with no command options provided
Signed-off-by: Tony Witherspoon <tony.witherspoon@gmail.com>
This commit is contained in:
parent
c3eca82749
commit
129fb5b356
|
@ -355,10 +355,14 @@ class TopLevelCommand(object):
|
||||||
"""
|
"""
|
||||||
Get help on a command.
|
Get help on a command.
|
||||||
|
|
||||||
Usage: help COMMAND
|
Usage: help [COMMAND]
|
||||||
"""
|
"""
|
||||||
handler = get_handler(cls, options['COMMAND'])
|
if options['COMMAND']:
|
||||||
raise SystemExit(getdoc(handler))
|
subject = get_handler(cls, options['COMMAND'])
|
||||||
|
else:
|
||||||
|
subject = cls
|
||||||
|
|
||||||
|
print(getdoc(subject))
|
||||||
|
|
||||||
def kill(self, options):
|
def kill(self, options):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue