mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-10 16:24:49 +00:00
print help message when 'wagtail' command is invoked with no args
This commit is contained in:
parent
ddc07d6aba
commit
36e05307fe
1 changed files with 6 additions and 1 deletions
|
|
@ -64,7 +64,12 @@ def main():
|
|||
(options, args) = parser.parse_args()
|
||||
|
||||
# Find command
|
||||
command = args[0]
|
||||
try:
|
||||
command = args[0]
|
||||
except IndexError:
|
||||
parser.print_help()
|
||||
return
|
||||
|
||||
if command in COMMANDS:
|
||||
COMMANDS[command](parser, options, args)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue