From ee9979e9e84a41235412cdab03b6e942d4435170 Mon Sep 17 00:00:00 2001 From: Joel Andres Granados Date: Thu, 30 Oct 2008 16:49:12 +0100 Subject: 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. --- firstaidkit | 18 ++++++++++++------ 1 file 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 - runs the automated mode with specified flow - %s [params] -a fix - automated fixing sequence [using the fix flows] - %s [params] -f - Implies --nodeps + firstaidkit [params] + firstaidkit [params] -a [flow] - runs for every detected plugin. If + is not specified it runs the diagnose + flow. If the plugin that is being run does + not have , the plugin is ignored. + + firstaidkit [params] -f + - runs for . If is not + specified then it runs diagnose flow. If + is not specified, its an error. + Implies --nodeps params is none or more items from: -c - location of the config file @@ -145,7 +151,7 @@ def usage(name): --nodeps - do not use plugin dependencies --plugin-args= - optionally pass arguments to plugin_name -""" % (name, name, name, name, name)) +""") if __name__=="__main__": try: -- cgit