1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 23:05:07 -05:00

--verbose, not --info-on-stderr

This commit is contained in:
Perttu Ahola 2012-03-11 04:22:48 +02:00
parent f1d9880006
commit f49914dd17

View File

@ -1115,7 +1115,9 @@ int main(int argc, char *argv[])
allowed_options.insert("map-dir", ValueSpec(VALUETYPE_STRING, allowed_options.insert("map-dir", ValueSpec(VALUETYPE_STRING,
"Map directory (where everything in the world is stored)")); "Map directory (where everything in the world is stored)"));
allowed_options.insert("info-on-stderr", ValueSpec(VALUETYPE_FLAG, allowed_options.insert("info-on-stderr", ValueSpec(VALUETYPE_FLAG,
"Print debug information to console")); "Print more information to console (deprecated; use --verbose)"));
allowed_options.insert("verbose", ValueSpec(VALUETYPE_FLAG,
"Print more information to console"));
#ifndef SERVER #ifndef SERVER
allowed_options.insert("speedtests", ValueSpec(VALUETYPE_FLAG, allowed_options.insert("speedtests", ValueSpec(VALUETYPE_FLAG,
"Run speed tests")); "Run speed tests"));
@ -1162,7 +1164,9 @@ int main(int argc, char *argv[])
Low-level initialization Low-level initialization
*/ */
if(cmd_args.getFlag("info-on-stderr") || cmd_args.getFlag("speedtests")) if(cmd_args.getFlag("verbose") ||
cmd_args.getFlag("info-on-stderr") ||
cmd_args.getFlag("speedtests"))
log_add_output(&main_stderr_log_out, LMT_INFO); log_add_output(&main_stderr_log_out, LMT_INFO);
porting::signal_handler_init(); porting::signal_handler_init();