diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-01-29 14:49:58 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-01-29 14:49:58 +0000 |
commit | cf1681fda046da3aa54c542cdae9cb33e5b49590 (patch) | |
tree | e26b33f75fca6bfa0a0f3058cb3e08bd4793d411 /navit/start_real.c | |
parent | 4fc18ca7f11565b17dcf76517ee7c57ea54f2003 (diff) | |
download | navit-cf1681fda046da3aa54c542cdae9cb33e5b49590.tar.gz |
Add:Core:New "global" debug level; activate option -d.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4915 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/start_real.c')
-rw-r--r-- | navit/start_real.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/start_real.c b/navit/start_real.c index 5dc3d1820..d07c68d76 100644 --- a/navit/start_real.c +++ b/navit/start_real.c @@ -57,7 +57,7 @@ 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 debug output level to <n>. (TODO)\n\t-h: print this usage info and exit.\n\t-v: Print the version and exit.\n")); + 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")); } @@ -130,7 +130,7 @@ int main_real(int argc, char **argv) config_file = optarg; break; case 'd': - printf("TODO Verbose option is set to `%s'\n", optarg); + debug_level_set(DEBUG_MODULE_GLOBAL, atoi(optarg)); break; case 'e': command=optarg; |