diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-10-30 16:49:12 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-10-30 16:49:12 +0100 |
commit | ee9979e9e84a41235412cdab03b6e942d4435170 (patch) | |
tree | 2c318ce1d1ad0fce162b6b3ae8c42ad7b0a4d43c /firstaidkit | |
parent | 43d660aeefb2bdc5869bcc76d83b4dba0b57ba00 (diff) | |
download | firstaidkit-ee9979e9e84a41235412cdab03b6e942d4435170.tar.gz firstaidkit-ee9979e9e84a41235412cdab03b6e942d4435170.tar.xz firstaidkit-ee9979e9e84a41235412cdab03b6e942d4435170.zip |
firstaidkit:
1. Make the usage message more readable.
It now prints "firstaidkit" as opposed to the caller string. This
allows the description to go into the next line without loosing
prettiness.
2. Make usage more compact.
Compact the explination of "-a" into one item in the usage string.
Diffstat (limited to 'firstaidkit')
-rwxr-xr-x | firstaidkit | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/firstaidkit b/firstaidkit index 874484e..6c83f7e 100755 --- a/firstaidkit +++ b/firstaidkit @@ -117,11 +117,17 @@ class GuiOutput(Thread): def usage(name): print("""Usage: - %s [params] - %s [params] -a - runs the automated default mode [diagnose] - %s [params] -a <flow> - runs the automated mode with specified flow - %s [params] -a fix - automated fixing sequence [using the fix flows] - %s [params] -f <plugin> <flow> - Implies --nodeps + firstaidkit [params] + firstaidkit [params] -a [flow] - runs <flow> for every detected plugin. If + <flow> is not specified it runs the diagnose + flow. If the plugin that is being run does + not have <flow>, the plugin is ignored. + + firstaidkit [params] -f <plugin> <flow> + - runs <flow> for <plugin>. If <flow> is not + specified then it runs diagnose flow. If + <plugin> is not specified, its an error. + Implies --nodeps params is none or more items from: -c <config file> - location of the config file @@ -145,7 +151,7 @@ def usage(name): --nodeps - do not use plugin dependencies --plugin-args=<plugin_name[/flow] args> - optionally pass arguments to plugin_name -""" % (name, name, name, name, name)) +""") if __name__=="__main__": try: |