Mercurial > parpg-app
comparison parpg.py @ 12:21714c459078
Added command line option to manually set a fife path.
author | Beliar <KarstenBock@gmx.net> |
---|---|
date | Mon, 05 Mar 2012 19:32:52 +0100 |
parents | 0897c89da4fe |
children | f4f3c785b0b1 |
comparison
equal
deleted
inserted
replaced
11:fb9e2dfe3163 | 12:21714c459078 |
---|---|
17 from optparse import OptionParser | 17 from optparse import OptionParser |
18 from os import path | 18 from os import path |
19 | 19 |
20 from parpg.main import main | 20 from parpg.main import main |
21 | 21 |
22 usage = ('usage: %prog [options]' | 22 usage = ('usage: %prog [options] ' |
23 'Example: python %prog .') | 23 'Example: python %prog .') |
24 | 24 |
25 parser = OptionParser(description='PARPG Launcher Script', usage=usage) | 25 parser = OptionParser(description='PARPG Launcher Script', usage=usage) |
26 parser.add_option('-f', '--logfile', | 26 parser.add_option('-f', '--logfile', |
27 help='Name of log file to save to') | 27 help='Name of log file to save to') |
28 parser.add_option('-l', '--loglevel', default='critical', | 28 parser.add_option('-l', '--loglevel', default='critical', |
29 help='desired output level for log file') | 29 help='desired output level for log file') |
30 opts, args = parser.parse_args() | 30 parser.add_option('-p', '--fife-path', |
31 help='Path to the fife module') | |
31 | 32 |
32 main(args, opts) | 33 main(parser) |