summaryrefslogtreecommitdiff
path: root/navit/start_real.c
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-08 19:15:00 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-08 19:15:00 +0000
commit8756ff848c26b2b31b7fbd5409e25b37759f8430 (patch)
tree3d2196fa9188097deb0371a35a329a752ccda2f8 /navit/start_real.c
parentada92d713a9ed78771089815b28993bc3601f5d7 (diff)
downloadnavit-svn-8756ff848c26b2b31b7fbd5409e25b37759f8430.tar.gz
Fix:core:Make command line option -d override the global debug level in navit.xml.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5186 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/start_real.c')
-rw-r--r--navit/start_real.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/navit/start_real.c b/navit/start_real.c
index 0865406d..a11f0c25 100644
--- a/navit/start_real.c
+++ b/navit/start_real.c
@@ -57,7 +57,12 @@ char **main_argv;
static void
print_usage(void)
{
- printf(_("navit usage:\nnavit [options] [configfile]\n\t-c <file>: use <file> as config file\n\t-d <n>: set the global debug output level to <n> (0-3).\n\t-h: print this usage info and exit.\n\t-v: Print the version and exit.\n"));
+ printf(_("navit usage:\n"
+ "navit [options] [configfile]\n"
+ "\t-c <file>: use <file> as config file\n"
+ "\t-d <n>: set the global debug output level to <n> (0-3). Overrides setting from config file.\n"
+ "\t-h: print this usage info and exit.\n"
+ "\t-v: Print the version and exit.\n"));
}
@@ -114,7 +119,7 @@ int main_real(int argc, char **argv)
if (argc == 2 && !strcmp(argv[1],"-RegisterForSystemEvents"))
argc=1;
if (argc > 1) {
- /* DEVELOPPERS : don't forget to update the manpage if you modify theses options */
+ /* Don't forget to update the manpage if you modify theses options */
while((opt = getopt(argc, argv, ":hvc:d:e:s:")) != -1) {
switch(opt) {
case 'h':
@@ -130,7 +135,7 @@ int main_real(int argc, char **argv)
config_file = optarg;
break;
case 'd':
- debug_level_set(DEBUG_MODULE_GLOBAL, atoi(optarg));
+ debug_set_global_level(atoi(optarg), 1);
break;
case 'e':
command=optarg;