From 7f73da182b07da8b1a0265cb1c2cb9678512f560 Mon Sep 17 00:00:00 2001 From: Kiyoshi Aman Date: Sun, 30 Dec 2018 18:22:59 -0600 Subject: [PATCH] main: Support "None" special seed --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 91cd3ac..894f712 100755 --- a/main.py +++ b/main.py @@ -12,10 +12,10 @@ if len(argv) < 2 or len(argv) > 4: print('Usage: {} [seed [forbidden,spells,...]]'.format(argv[0])) exit(1) -if len(argv) == 2: +if len(argv) == 2 or (len(argv) >= 3 and argv[2] == 'None'): seed = str(time()).split('.')[0] if len(argv) >= 3: - seed = argv[2] + seed = argv[2] if argv[2] if len(argv) == 4: spells = argv[3].split(',') forbidden = [spell_map[i] for i in spells]