forked from divulgacheur/TGV_Maximize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.py
35 lines (30 loc) · 896 Bytes
/
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
class SearchOptions:
"""
Class to define options for searching
"""
via: str
berth_only: bool = False
long: bool = False
direct_only: bool = False
max_duration: int
def __init__(self, via=None, max_duration=None, berth_only=False, long=False,
direct_only=False, verbosity=False, quiet=False, debug = False) -> None:
self.via = via
self.berth_only = berth_only
self.long = long
self.direct_only = direct_only
self.max_duration = max_duration
self.verbosity = verbosity
self.quiet = quiet
self.debug = debug
class PromptOptions:
"""
Class to define options for prompting
"""
verbosity: bool
quiet: bool
debug: bool
def __init__(self, verbosity, quiet, debug):
self.verbosity = verbosity
self.quiet = quiet
self.debug = debug