Skip to content

Commit 2c1df7c

Browse files
committedOct 29, 2022
-q count
1 parent 1c07d03 commit 2c1df7c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
 

‎changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11

22
# Changelogs
33

4+
- 2022.08.28
5+
- add `-q` for quiet mode
6+
- `-qqqqq` to mute all the logs
7+
-
48

59
- 2022.04.27
610
- handle PermissionError for chmod

‎zipapps/__main__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def main():
262262
parser.add_argument(
263263
'-q',
264264
'--quite',
265-
action='store_true',
265+
action="count",
266266
dest='quite_mode',
267267
help='mute logs.',
268268
)
@@ -272,7 +272,7 @@ def main():
272272
if args.quite_mode:
273273
ZipApp.LOGGING = False
274274
if '-q' not in pip_args and '--quiet' not in pip_args:
275-
pip_args.append('-q')
275+
pip_args.append(f'-{"q" * args.quite_mode}')
276276
ZipApp._log(f'zipapps args: {args}, pip install args: {pip_args}')
277277
if args.activate:
278278
from .activate_zipapps import activate

0 commit comments

Comments
 (0)
Failed to load comments.