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 committed by Joffrey F
parent 1e164ca802
commit 9cf483e224

View File

@ -361,10 +361,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):
""" """