r15655 - gnucash/trunk - Bug#397689: update man page to reflect recent options changes. Make fail-on-unknown-option error point the user to '--help'.

Josh Sled jsled at cvs.gnucash.org
Sun Feb 25 10:08:17 EST 2007


Author: jsled
Date: 2007-02-25 10:08:16 -0500 (Sun, 25 Feb 2007)
New Revision: 15655
Trac: http://svn.gnucash.org/trac/changeset/15655

Modified:
   gnucash/trunk/doc/gnucash.1.in
   gnucash/trunk/src/bin/gnucash-bin.c
Log:
Bug#397689: update man page to reflect recent options changes.  Make fail-on-unknown-option error point the user to '--help'.


Modified: gnucash/trunk/doc/gnucash.1.in
===================================================================
--- gnucash/trunk/doc/gnucash.1.in	2007-02-25 11:15:30 UTC (rev 15654)
+++ gnucash/trunk/doc/gnucash.1.in	2007-02-25 15:08:16 UTC (rev 15655)
@@ -23,16 +23,16 @@
 Show
 .B GnuCash
 version
-.IP --usage
-Show
-.B GnuCash
-usage information
 .IP --help
 Show this help message
 .IP --debug
-Enable debugging mode
-.IP "--loglevel LOGLEVEL"
-Set the logging level from 0 (least) to 6 (most)
+Enable debugging mode: increasing logging to provide deep detail.
+.IP --extra
+Enable extra/development/debugging features.
+.IP --log
+Log level overrides, of the form "log.ger.path={debug,info,warn,crit,error}"
+.IP --logto
+File to log into; defaults to "/tmp/gnucash.trace"; can be "stderr" or "stdout".
 .IP --nofile
 Do not load the last file opened
 .IP "--config-dir CONFIGDIR"
@@ -43,18 +43,10 @@
 Set the search path for .scm files
 .IP "--doc-path DOCPATH"
 Set the search path for documentation files
-.IP --evaluate
-Evaluate the guile command
-.IP "--load FILE"
-Load the given .scm file
 .IP "--add-price-quotes FILE"
 Add price quotes to the given data file
-.IP --load-user-config
-Load the user configuration
-.IP --load-system-config
-Load the system configuration
-.IP --rpc-server
-Run the RPC Server
+.IP --namespace=REGEXP
+Regular expression determining which namespace commodities will be retrieved.
 .SH FILES
 .I ~/.gnucash/config.auto
 .RS

Modified: gnucash/trunk/src/bin/gnucash-bin.c
===================================================================
--- gnucash/trunk/src/bin/gnucash-bin.c	2007-02-25 11:15:30 UTC (rev 15654)
+++ gnucash/trunk/src/bin/gnucash-bin.c	2007-02-25 15:08:16 UTC (rev 15655)
@@ -266,7 +266,7 @@
     g_option_context_add_group (context, gtk_get_option_group (FALSE));
     if (!g_option_context_parse (context, argc, &argv, &error))
     {
-         g_error("error parsing command line args: %s", error->message);
+         g_error("Error parsing command line arguments: [%s]; try `gnucash --help` for available options.", error->message);
     }
     g_option_context_free (context);
     if (error)



More information about the gnucash-changes mailing list