Command-line usage message

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
jh145
Dangerous
Dangerous
Posts: 94
Joined: Thu Dec 25, 2014 8:39 pm

Command-line usage message

Post 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.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Command-line usage message

Post 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]
User avatar
jh145
Dangerous
Dangerous
Posts: 94
Joined: Thu Dec 25, 2014 8:39 pm

Re: Command-line usage message

Post by jh145 »

Thanks, cim, I'll do that. Problem solved.

The command line should still play nicely though.
Post Reply