changeset 8278:fefd139b4980

cli: fix argv bug just introduced in 2ce0bc6e85f1 Reported by mjacob.
author Mads Kiilerich <mads@kiilerich.com>
date Wed, 04 Mar 2020 13:47:15 +0100
parents afe7599f1d8b
children fb70be1e6729
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	Wed Mar 04 13:43:08 2020 +0100
+++ b/kallithea/bin/kallithea_api.py	Wed Mar 04 13:47:15 2020 +0100
@@ -59,7 +59,7 @@
                  'be also `%s`' % (FORMAT_PRETTY, FORMAT_JSON),
             default=FORMAT_PRETTY
     )
-    args, other = parser.parse_known_args(args=argv)
+    args, other = parser.parse_known_args(args=argv[1:])
     return parser, args, other
 
 
--- a/kallithea/bin/kallithea_gist.py	Wed Mar 04 13:43:08 2020 +0100
+++ b/kallithea/bin/kallithea_gist.py	Wed Mar 04 13:47:15 2020 +0100
@@ -68,7 +68,7 @@
                        'be also `%s`' % (FORMAT_PRETTY, FORMAT_JSON),
             default=FORMAT_PRETTY
     )
-    args, other = parser.parse_known_args(args=argv)
+    args, other = parser.parse_known_args(args=argv[1:])
     return parser, args, other