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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15655 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2007-02-25 15:08:16 +00:00
parent 5b85f1ce07
commit 9803684fed
2 changed files with 10 additions and 18 deletions

View File

@ -23,16 +23,16 @@ provide an attractive user interface, and has extensive online help.
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 shared directory
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

View File

@ -266,7 +266,7 @@ gnucash_command_line(int *argc, char **argv)
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)