summaryrefslogtreecommitdiffstats
path: root/firstaidkit
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-04-18 16:40:03 +0200
committerMartin Sivak <msivak@redhat.com>2008-04-18 16:40:03 +0200
commit0b80133a5a7504c3e4b138efcd3851765cccc90d (patch)
tree5c0146eb588d8570af8f8b77aa3d5afee1faf7ee /firstaidkit
parent4ebb2ac6dff43701d938c05f19459bb513d22151 (diff)
downloadfirstaidkit-0b80133a5a7504c3e4b138efcd3851765cccc90d.tar.gz
firstaidkit-0b80133a5a7504c3e4b138efcd3851765cccc90d.tar.xz
firstaidkit-0b80133a5a7504c3e4b138efcd3851765cccc90d.zip
Add --flags commandline option to list all known dependency flags
Diffstat (limited to 'firstaidkit')
-rwxr-xr-xfirstaidkit5
1 files changed, 4 insertions, 1 deletions
diff --git a/firstaidkit b/firstaidkit
index 4da0d94..75804e3 100755
--- a/firstaidkit
+++ b/firstaidkit
@@ -98,6 +98,7 @@ def usage(name):
-g <gui> - frontend to show results
-h - help
--print-config - print resulting config file
+ --flags - list all known flags
--list - list all plugins
--info <plugin> - get information about plugin
""" % (name, name, name, name, name)
@@ -107,7 +108,7 @@ if __name__=="__main__":
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"])
+ "print-config", "help", "flags"])
except Exception, e:
print "\nError parsing the argument line: ",e,"\n"
usage(sys.argv[0])
@@ -154,6 +155,8 @@ if __name__=="__main__":
elif key in ("-h", "--help"):
Config.operation.help = "True"
Flags.main_help = True
+ elif key in ("--flags"):
+ Config.operation.mode = "flags"
elif key in ("--list"):
Config.operation.mode = "list"
elif key in ("--info"):