code cleanup

This commit is contained in:
blitzmann
2017-11-27 21:05:06 -05:00
parent 2365112292
commit 2936b88c3d
43 changed files with 193 additions and 172 deletions

14
pyfa.py
View File

@@ -28,22 +28,23 @@ import config
ascii_text = '''
++++++++++++++++++++++++++++++++++++++++++++++++++
__
/ _|
_ __ _ _ | |_ __ _
/ _|
_ __ _ _ | |
| '_ \ | | | || _|/ _` |
| |_) || |_| || | | (_| |
| .__/ \__, ||_| \__,_|
| | __/ |
|_| |___/
| | __/ |
|_| |___/
You are running a alpha/beta version of pyfa.
You are running a alpha/beta version of pyfa.
++++++++++++++++++++++++++++++++++++++++++++++++++
'''
print(ascii_text)
class PassThroughOptionParser(OptionParser):
"""
An unknown option pass-through implementation of OptionParser.
@@ -59,6 +60,7 @@ class PassThroughOptionParser(OptionParser):
# pyfalog.error("Bad startup option passed.")
largs.append(e.opt_str)
# Parse command line options
usage = "usage: %prog [--root]"
parser = PassThroughOptionParser(usage=usage)