Skip to content

Command Line Parameters (Startup Options)

Ebag333 edited this page Feb 17, 2017 · 5 revisions

parser.add_option("-r", "--root", action="store_true", dest="rootsavedata", help="if you want pyfa to store its data in root folder, use this option", default=False) parser.add_option("-w", "--wx28", action="store_true", dest="force28", help="Force usage of wxPython 2.8", default=False) parser.add_option("-d", "--debug", action="store_true", dest="debug", help="Set logger to debug level.", default=False) parser.add_option("-t", "--title", action="store", dest="title", help="Set Window Title", default=None) parser.add_option("-s", "--savepath", action="store", dest="savepath", help="Set the folder for savedata", default=None) parser.add_option("-c", "--codec", action="store", dest="codec", help="Forces use of a particular language codec to run", default=None)

Save Data in Root

Description

If you want pyfa to store its data in root folder (same folder as executable), use this option

Switches

-r --root

Example

pyfa.exe -r pyfa.exe --root

Use wxPython 2.8

Description

Force usage of wxPython 2.8.

Switches

-w --wx28

Example

pyfa.exe -w pyfa.exe --x28

Debug Mode

Description

Enables debug mode for additional logging.

Switches

-d --debug

Example

pyfa.exe -d pyfa.exe --debug

Pyfa Window Title

Description

Set Window Title

Switches

-t --title

Example

pyfa.exe -t "New Title For Window" pyfa.exe --title "Pyfa Is The Coolest Fitting Program Ever"

Set SavedData Folder

Description

Set the folder for savedata location.

Switches

-s --savepath

Example

pyfa.exe -s "c:\PyfaData\ pyfa.exe --savepath "%ENV_VARIABLE%\PyfaData\"

Locale Codec

Description

Forces use of a particular language codec to run. Used by the operating system to decode special characters in file paths. See: https://docs.python.org/2/library/codecs.html#standard-encodings

Switches

-c --codec

Example

pyfa.exe -c "UTF32" pyfa.exe --codec "cp1251"

Clone this wiki locally