-
Notifications
You must be signed in to change notification settings - Fork 0
/
main_template.py
59 lines (42 loc) · 1.07 KB
/
main_template.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env python3
"""
--Problem Name-- problem
for Google Code Jam --Year--
--Round--
Link to problem description:
--Link--
Author:
Tasos Sangiotis
(tsagi)
Language:
Python 3(.4)
Date:
--Date--
Usage:
python3 main.py input_file
"""
import sys
import argparse
# modules I've written:
from helpful import *
_program_description = \
'''TEMPLATE PROGRAM DESCRIPTION'''
_input_file_description = \
'''TEMPLATE INPUT FILE DESCRIPTION'''
def parse_args():
"""
Parse the command line arguments and return them in a namespace.
"""
parser = argparse.ArgumentParser(description=_program_description)
parser.add_argument('input_file', help=_input_file_description)
#parser.add_argument('-v', '--verbose', action='store_true',
# default=False, help='show progress')
args = parser.parse_args()
return args
def main(filename):
with open(filename, 'r', encoding='utf-8') as f:
raise NotImplementedError()
return 0
if __name__ == "__main__":
status = main(parse_args().input_file)
sys.exit(status)