mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
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
1e164ca802
commit
9cf483e224
@ -361,10 +361,14 @@ class TopLevelCommand(object):
|
||||
"""
|
||||
Get help on a command.
|
||||
|
||||
Usage: help COMMAND
|
||||
Usage: help [COMMAND]
|
||||
"""
|
||||
handler = get_handler(cls, options['COMMAND'])
|
||||
raise SystemExit(getdoc(handler))
|
||||
if options['COMMAND']:
|
||||
subject = get_handler(cls, options['COMMAND'])
|
||||
else:
|
||||
subject = cls
|
||||
|
||||
print(getdoc(subject))
|
||||
|
||||
def kill(self, options):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user