From 3a19ae0bf561bfd6e58ab22b4457fc28f76a6d84 Mon Sep 17 00:00:00 2001 From: Michal Rakowski Date: Wed, 2 Oct 2019 19:54:41 +0200 Subject: [PATCH] utils: print help as default casctl cmd Signed-off-by: Michal Rakowski --- utils/casctl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/casctl b/utils/casctl index 26efdae..27be7e6 100755 --- a/utils/casctl +++ b/utils/casctl @@ -125,6 +125,10 @@ class cas: parser_stop.set_defaults(command='stop') parser_stop.add_argument ('--flush', action='store_true', help = 'Flush data before stopping') + if len(sys.argv[1:]) == 0: + parser.print_help() + return + args = parser.parse_args(sys.argv[1:]) getattr(self, 'command_' + args.command)(args)