Command line switches

Wishes get here when they grow up.
Locked
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Command line switches

Post by gyboth »

i should implement some command line switches using GOption to make things more comfortable. disadvantage would be that glib 2.6 is required, i think.

gyözö
Press any key to continue or any other key to quit.
gyboth
Site Admin
Posts: 1421
Joined: Sat Dec 18, 2004 8:42 am
Location: Passau, Germany
Contact:

Post by gyboth »

:arrow: done. Current command line arguments are:

Code: Select all

-s, --support-dir=DIR     Specify additional support directory (takes priority over default ones)

-d, --debug-level=N       Debug level to use

-L, --lang=CODE           Language to use (a code like 'de')
-l, --last-save           Load last savegame (same as calling [b]bygfoot last_save[/b])
if there are no switches, the argument is taken to be a savefile. to make things easy, you can omit the '.zip' extension and also the full path, if the file is in the default saves dir; you can also call 'bygfoot last_save' to load the last savegame.

suggestions for additional switches are welcome.

gyözö
Press any key to continue or any other key to quit.
Locked