Mercurial > kallithea
changeset 8271:2ce0bc6e85f1
cli: pass local argv to argparser instead of letting it use the global sys.argv
Fix pylint warning: "fix W0613(unused-argument) in argparser: Unused argument 'argv".
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Sun, 04 Aug 2019 18:35:21 +0200 |
parents | 5725fa4cfecd |
children | 1e0632b6ec27 |
files | kallithea/bin/kallithea_api.py kallithea/bin/kallithea_gist.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/bin/kallithea_api.py Sun Aug 04 00:07:10 2019 +0200 +++ b/kallithea/bin/kallithea_api.py Sun Aug 04 18:35:21 2019 +0200 @@ -59,7 +59,7 @@ 'be also `%s`' % (FORMAT_PRETTY, FORMAT_JSON), default=FORMAT_PRETTY ) - args, other = parser.parse_known_args() + args, other = parser.parse_known_args(args=argv) return parser, args, other
--- a/kallithea/bin/kallithea_gist.py Sun Aug 04 00:07:10 2019 +0200 +++ b/kallithea/bin/kallithea_gist.py Sun Aug 04 18:35:21 2019 +0200 @@ -68,7 +68,7 @@ 'be also `%s`' % (FORMAT_PRETTY, FORMAT_JSON), default=FORMAT_PRETTY ) - args, other = parser.parse_known_args() + args, other = parser.parse_known_args(args=argv) return parser, args, other