-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathcli.py
More file actions
30 lines (25 loc) · 677 Bytes
/
Copy pathcli.py
File metadata and controls
30 lines (25 loc) · 677 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
import argparse
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument(
'--loglevel',
dest = 'loglevel',
choices = ['info', 'debug'],
default = 'info'
)
parser.add_argument(
'-p', '--profile-path',
dest = 'profile_path',
help = 'Path to your Firefox profile directory (e.g. ~/.mozilla/firefox/abcd.default)',
)
parser.add_argument(
'-t', '--threads',
dest = 'threads',
type = int,
default = 10
)
parser.add_argument(
'--no-master-password',
dest = 'no_password',
action = 'store_true',
help = 'Try to open the Firefox profile without any master password.'
)