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:
Tony Witherspoon 2016-04-04 13:15:28 -04:00
parent c3eca82749
commit 129fb5b356
1 changed files with 7 additions and 3 deletions

View File

@ -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):
""" """