From cd646619dd4723f8e4ac7325c3cc5e81193dbd40 Mon Sep 17 00:00:00 2001 From: Martin Sivak Date: Tue, 26 Feb 2008 15:19:42 +0100 Subject: Rename the Return* classes to more sane names and update everything to use them Fix the NoOptionError exception throwing in configuration Add the -a|--auto parameter to launch the automatic mode of operation --- firstaidkit | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'firstaidkit') diff --git a/firstaidkit b/firstaidkit index 8525078..cf84a62 100755 --- a/firstaidkit +++ b/firstaidkit @@ -44,6 +44,7 @@ class Output(Thread): def usage(name): print """Usage: %s [params] + %s [params] -a %s [params] -f plugin flow %s [params] -t plugin task params is none or more items from: @@ -63,8 +64,8 @@ def usage(name): """ % (name, name, name) if __name__=="__main__": - params, rest = getopt.getopt(sys.argv[1:], "ftc:r:vl:x:F:g:P:h", - ["list", "info=", "flow", "task", "config=", "root=", "verbose", "log=", "exclude=", + params, rest = getopt.getopt(sys.argv[1:], "aftc:r:vl:x:F:g:P:h", + ["list", "info=", "auto", "flow", "task", "config=", "root=", "verbose", "log=", "exclude=", "flag=", "gui=", "plugin-path=", "print-config", "help"]) # @@ -77,6 +78,9 @@ if __name__=="__main__": if key in ("-t", "--task"): Config.operation.mode = "task" Flags.main_help = False + elif key in ("-a", "--auto"): + Config.operation.mode = "auto" + Flags.main_help = False elif key in ("-f", "--flow"): Config.operation.mode = "flow" Flags.main_help = False -- cgit