That way we still get help if there is an error.
Signed-off-by: Sage Weil <sage@inktank.com>
return errno.EINVAL
return 0
+ # basic help
+ timeout = None
+ if parsed_args.cluster_timeout:
+ timeout = parsed_args.cluster_timeout
+
+ if parsed_args.help:
+ do_basic_help(parser, childargs)
+
# handle any 'generic' ceph arguments that we didn't parse here
global cluster_handle
print >> sys.stderr, '"{0} tell" is deprecated; try "tell {0}.<id>" instead (id can be "*") '.format(childargs[0])
return 1
-
- timeout = None
- if parsed_args.cluster_timeout:
- timeout = parsed_args.cluster_timeout
-
if parsed_args.help:
- do_basic_help(parser, childargs)
-
# short default timeout for -h
if not timeout:
timeout = 5