summaryrefslogtreecommitdiffstats
path: root/firstaidkit
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-02-26 15:19:42 +0100
committerMartin Sivak <msivak@redhat.com>2008-02-26 15:19:42 +0100
commitcd646619dd4723f8e4ac7325c3cc5e81193dbd40 (patch)
tree5575a412a13c8df27f93541d5933a174dfb19ba6 /firstaidkit
parentcfe9ad54127a42b79f9057d341ec94099630b884 (diff)
downloadfirstaidkit-cd646619dd4723f8e4ac7325c3cc5e81193dbd40.tar.gz
firstaidkit-cd646619dd4723f8e4ac7325c3cc5e81193dbd40.tar.xz
firstaidkit-cd646619dd4723f8e4ac7325c3cc5e81193dbd40.zip
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
Diffstat (limited to 'firstaidkit')
-rwxr-xr-xfirstaidkit8
1 files changed, 6 insertions, 2 deletions
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