From f6828f820585e109f56af02814eddf6dea197838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9gory=20Starck?= Date: Thu, 22 Jan 2015 15:23:11 -0500 Subject: [PATCH] Fix: correctly handle '-h' (or --help) Change-Id: I57ea8c339bd81773017803987a72206b0de0ba0e --- surveilclient/shell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surveilclient/shell.py b/surveilclient/shell.py index eb9b629..9089bd3 100644 --- a/surveilclient/shell.py +++ b/surveilclient/shell.py @@ -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