mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Don't make unknown command-line arguments abort the program, just warn and exit non-zero.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16650 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
004479a1ff
commit
8da4c360ab
@ -285,7 +285,8 @@ 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 arguments: [%s]; try `gnucash --help` for available options.", error->message);
|
||||
g_warning("Error parsing command line arguments: [%s]; try `gnucash --help` for available options.", error->message);
|
||||
exit(1);
|
||||
}
|
||||
g_option_context_free (context);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user