[kupfer: 10/27] main: Remove configuration file info from --help
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [kupfer: 10/27] main: Remove configuration file info from --help
- Date: Tue, 16 Feb 2010 20:47:57 +0000 (UTC)
commit c53960f36922647b5040f7af34ba233538918f53
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Tue Feb 16 19:42:15 2010 +0100
main: Remove configuration file info from --help
This information no longer serves much purpose since kupfer is gui
configurable.
kupfer/main.py | 21 ++-------------------
1 files changed, 2 insertions(+), 19 deletions(-)
---
diff --git a/kupfer/main.py b/kupfer/main.py
index f615f29..5a64fec 100644
--- a/kupfer/main.py
+++ b/kupfer/main.py
@@ -47,31 +47,14 @@ def get_options():
import getopt
def make_help_text():
- from kupfer import config
-
- config_filename = "kupfer.cfg"
- defaults_filename = "defaults.cfg"
- conf_path = config.save_config_file(config_filename)
- defaults_path = config.get_data_file(defaults_filename)
usage_string = _("Usage: kupfer [ OPTIONS | FILE ... ]")
def format_options(opts):
return "\n".join(" --%-15s %s" % (o,h) for o,h in opts)
- options_string = u"%s\n\n%s\n\n%s" % (usage_string,
+ options_string = u"%s\n\n%s\n\n%s\n" % (usage_string,
format_options(program_options), format_options(misc_options))
- configure_help1 = _("To configure kupfer, edit:")
- configure_help2 = _("The default config for reference is at:")
- help_text = "\n".join((
- options_string,
- "\n",
- configure_help1,
- "\t%s" % conf_path,
- configure_help2,
- "\t%s" % defaults_path,
- "\n",
- ))
- return help_text
+ return options_string
def make_plugin_list():
from kupfer.core import plugins
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]