[kupfer] main: Use a real usage string "kupfer [OPTIONS | ..."



commit e296dc991dba34483400f846a08d33a3301927a0
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Tue Sep 8 20:51:51 2009 +0200

    main: Use a real usage string "kupfer [OPTIONS | ..."

 kupfer/main.py |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/kupfer/main.py b/kupfer/main.py
index ac5dfa8..914dffc 100644
--- a/kupfer/main.py
+++ b/kupfer/main.py
@@ -50,15 +50,15 @@ def get_options():
 		defaults_filename = "defaults.cfg"
 		conf_path = config.save_config_file(config_filename)
 		defaults_path = config.get_data_file(defaults_filename)
-		usage_string = _("Usage:")
-		usage_string = usage_string + "\n" + "\n".join("  --%-15s  %s" % (o,h) for o,h in (program_options + misc_options))
+		usage_string = _("Usage: kupfer [OPTIONS | QUERY]")
+		options_string = usage_string + "\n\n" + "\n".join("  --%-15s  %s" % (o,h) for o,h in (program_options + misc_options))
 
 		configure_help1 = _("To configure kupfer, edit:")
 		configure_help2 = _("The default config for reference is at:")
 		plugin_header = _("Available plugins:")
 		plugin_list = plugins.get_plugin_desc()
-		usage_text = "\n".join((
-			usage_string,
+		help_text = "\n".join((
+			options_string,
 			"\n",
 			configure_help1,
 			"\t%s" % conf_path,
@@ -68,7 +68,7 @@ def get_options():
 			plugin_header,
 			plugin_list,
 		))
-		return usage_text
+		return help_text
 
 	try:
 		opts, args = getopt.getopt(sys.argv[1:], "",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]