From 4a4687c4ce4e5aa09e54531c662355d294dcaa6c Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 7 Mar 2015 20:32:51 +0100 Subject: improved --help output and introduced PACKAGE_URL_DEV (for development home) * The PACKAGE_URL_DEV is also mentioned in --help output and sciteco(1) --- src/main.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main.cpp b/src/main.cpp index ed054d7..a2de09e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -117,7 +117,8 @@ process_options(int &argc, char **&argv) {"eval", 'e', 0, G_OPTION_ARG_STRING, &eval_macro, "Evaluate macro", "macro"}, {"mung", 'm', 0, G_OPTION_ARG_FILENAME, &mung_file, - "Mung file instead of " INI_FILE, "file"}, + "Mung file instead of " + "$SCITECOCONFIG" G_DIR_SEPARATOR_S INI_FILE, "file"}, {NULL} }; @@ -126,7 +127,17 @@ process_options(int &argc, char **&argv) GOptionContext *options; GOptionGroup *interface_group = interface.get_options(); - options = g_option_context_new("- " PACKAGE_STRING); + options = g_option_context_new("[--] [ARGUMENT...]"); + + g_option_context_set_summary( + options, + PACKAGE_STRING " -- Scintilla-based Text Editor and COrrector" + ); + g_option_context_set_description( + options, + "Bug reports should go to <" PACKAGE_BUGREPORT "> or " + "<" PACKAGE_URL_DEV ">." + ); g_option_context_add_main_entries(options, option_entries, NULL); if (interface_group) -- cgit v1.2.3