-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcommandlineparser.py
More file actions
37 lines (30 loc) · 958 Bytes
/
Copy pathcommandlineparser.py
File metadata and controls
37 lines (30 loc) · 958 Bytes
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
import argparse
class CommandLineParser(object):
"""
Headers can only be passed by input binary file
"""
def parse(self):
self.parser = argparse.ArgumentParser(description="Remote server options")
self.parser.add_argument(
"-k",
"--kill-processes",
default=False,
help="Kill processes at start",
action="store_true",
)
self.parser.add_argument(
"-m",
"--multi-process",
default=False,
help="Crawling is done in a separate thread",
action="store_true",
)
self.parser.add_argument(
"-d",
"--debug",
help="Debug indication",
action="store_true",
)
self.parser.add_argument("--cert-file", help="Host")
self.parser.add_argument("--cert-key", help="Host")
self.args = self.parser.parse_args()