mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Style fixes
A bunch of style fixes. Mostly white space and style import order tweaks, but a few other stylistic changes are present too.
This commit is contained in:
@@ -5,8 +5,8 @@ import random
|
||||
import textwrap
|
||||
import sys
|
||||
|
||||
from Main import main
|
||||
from Gui import guiMain
|
||||
from Main import main
|
||||
from Utils import is_bundled, close_console
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ class ArgumentDefaultsHelpFormatter(argparse.RawTextHelpFormatter):
|
||||
return textwrap.dedent(action.help)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
def start():
|
||||
parser = argparse.ArgumentParser(formatter_class=ArgumentDefaultsHelpFormatter)
|
||||
parser.add_argument('--create_spoiler', help='Output a Spoiler File', action='store_true')
|
||||
parser.add_argument('--logic', default='noglitches', const='noglitches', nargs='?', choices=['noglitches', 'minorglitches'],
|
||||
@@ -191,7 +191,7 @@ if __name__ == '__main__':
|
||||
''')
|
||||
args = parser.parse_args()
|
||||
|
||||
if is_bundled() and len(sys.argv) == 1 :
|
||||
if is_bundled() and len(sys.argv) == 1:
|
||||
# for the bundled builds, if we have no arguments, the user
|
||||
# probably wants the gui. Users of the bundled build who want the command line
|
||||
# interface shouuld specify at least one option, possibly setting a value to a
|
||||
@@ -219,8 +219,11 @@ if __name__ == '__main__':
|
||||
guiMain(args)
|
||||
elif args.count is not None:
|
||||
seed = args.seed
|
||||
for i in range(args.count):
|
||||
for _ in range(args.count):
|
||||
main(seed=seed, args=args)
|
||||
seed = random.randint(0, 999999999)
|
||||
else:
|
||||
main(seed=args.seed, args=args)
|
||||
|
||||
if __name__ == '__main__':
|
||||
start()
|
||||
|
Reference in New Issue
Block a user