Page 1 of 1

Command-line usage message

Posted: Sat Dec 27, 2014 7:56 pm
by jh145
When I "oolite --help", the game starts as normal.
When I "oolite --no-such-option", the game starts as normal.

In both cases, it would be better (please) to parse the command line properly and report a usage message.

I tried both command lines in the hope of identifying an option to turn on "debug-level" logging. If there is such an option, please tell me.

Cheers.

Re: Command-line usage message

Posted: Sat Dec 27, 2014 8:31 pm
by cim
Logging is controlled by the logcontrol.plist file.

To enable extra logging, create a logcontrol.plist file in your AddOns folder, and enable the logging categories you wish to use in that. For example, to add logging of progress messages while loading shipdata, and removal of joysticks, you would do this in the file.

Code: Select all

{
    "joystick.remove" = yes;
    "shipData.load.progress" = yes;
}
Available log classes can be found in the core game's logcontrol.plist file. There's no single "enable debug logging" option - enabling all the logging at once will give you a multi-megabyte log file in seconds. Any class you don't intend to change the settings for you don't need to specify in your own copy of the file.

A list of the (few) available command line parameters is at [wiki]Hidden_Settings_in_Oolite[/wiki]

Re: Command-line usage message

Posted: Sat Dec 27, 2014 10:36 pm
by jh145
Thanks, cim, I'll do that. Problem solved.

The command line should still play nicely though.