Fix: correctly handle '-h' (or --help)

Change-Id: I57ea8c339bd81773017803987a72206b0de0ba0e
This commit is contained in:
Grégory Starck
2015-01-22 15:23:11 -05:00
committed by Alexandre Viau
parent b277ca969f
commit f6828f8205

View File

@@ -137,7 +137,7 @@ class SurveilShell(object):
# Handle top-level --help/-h before attempting to parse
# a command off the command line
if not args and options.help or not argv:
if not argv or ('-h' in args or '--help' in args):
self.do_help(options)
return 0