Change where switches go to support executable timetables

This commit is contained in:
Juhani Krekelä 2017-12-29 13:49:22 +02:00
parent cdc6e22a2b
commit 699caf7686
1 changed files with 2 additions and 2 deletions

View File

@ -14,9 +14,9 @@ def parse_date(text):
def main():
args = sys.argv[1:]
if len(args) > 1 and args[0] == '--overlaps':
if len(args) > 2 and args[1] == '--overlaps':
only_overlaps = True
args = args[1:]
args = args[:1] + args[2:]
else:
only_overlaps = False