We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
n8henrie
Learn more about funding links in repositories.
Report abuse
1 parent b48c134 commit 69348d4Copy full SHA for 69348d4
src/pycookiecheat/__main__.py
@@ -4,6 +4,7 @@
4
import json
5
import logging
6
7
+from importlib.metadata import version
8
from .chrome import chrome_cookies
9
from .common import BrowserType
10
from .firefox import firefox_cookies
@@ -25,15 +26,21 @@ def main() -> None:
25
26
help="Output to this file in netscape cookie file format",
27
)
28
parser.add_argument(
- "--verbose",
29
"-v",
30
+ "--verbose",
31
action="count",
32
default=0,
33
help=(
34
"Increase logging verbosity (may repeat), default is "
35
"`logging.ERROR`"
36
),
37
38
+ parser.add_argument(
39
+ "-V",
40
+ "--version",
41
+ action='version',
42
+ version=version(parser.prog),
43
+ )
44
args = parser.parse_args()
45
46
logging.basicConfig(level=max(logging.ERROR - 10 * args.verbose, 0))
0 commit comments