From bd2811513cb2df737f90dfa309d2f8fed58510a4 Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Mon, 17 Mar 2008 13:58:33 +0100 Subject: Fix the help message --- firstaidkit | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/firstaidkit b/firstaidkit index e3ea9fd..69d0888 100755 --- a/firstaidkit +++ b/firstaidkit @@ -110,7 +110,7 @@ if __name__=="__main__": "print-config", "help"]) except Exception, e: print "\nError parsing the argument line: ",e,"\n" - usage(sys.argv) + usage(sys.argv[0]) sys.exit(1) # @@ -163,7 +163,7 @@ if __name__=="__main__": if Config.operation.mode == "flow": if len(rest) < 1: print "Error in the command arguments.\n" - usage(sys.argv) + usage(sys.argv[0]) sys.exit(1) Config.operation.plugin = rest[0] @@ -180,7 +180,7 @@ if __name__=="__main__": Config.operation.task = rest[1] elif Config.operation.mode == "": print "\nError in command arguments: no mode specified\n" - usage(sys.argv) + usage(sys.argv[0]) sys.exit(1) if Flags.main_help: -- cgit