-
Notifications
You must be signed in to change notification settings - Fork 2
/
options.py
62 lines (52 loc) · 1.46 KB
/
options.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
60
61
62
import argparse
parser = argparse . ArgumentParser (
description = 'A Satisfactory planner/optimizer based on scipy.linprog.optimize'
)
parser . add_argument (
'--node-types-file',
dest = 'node_types_file_name',
default = 'node_types.json',
help = 'The location of the file containing node type data (default: '
+ 'node_types.json).'
)
parser . add_argument (
'--well-types-file',
dest = 'well_types_file_name',
default = 'well_types.json',
help = 'The location of the file containing well type data (default: '
+ 'well_types.json).'
)
parser . add_argument (
'--items-file',
dest = 'items_file_name',
default = 'items.json',
help = 'The location of the file containing item data (default: '
+ 'items.json).'
)
parser . add_argument (
'--machines-file',
dest = 'machines_file_name',
default = 'machines.json',
help = 'The location of the file containing machine data (default: '
+ 'machines.json).'
)
parser . add_argument (
'--recipes-file',
dest = 'recipes_file_name',
default = 'recipes.json',
help = 'The location of the file containing recipe data (default: '
+ 'recipes.json).'
)
parser . add_argument (
'--precision',
type = int,
default = 3,
help = 'Specifies the number of digits to display after the decimal point '
+ 'when reporting fractional results (default: 3).'
)
parser . add_argument (
'problem_file_name',
help = 'The location of the file containing the problem description.'
)
def parse_args ():
return parser . parse_args ()