Changeset - fefd139b4980
[Not reviewed]
default
0 2 0
Mads Kiilerich - 6 years ago 2020-03-04 13:47:15
mads@kiilerich.com
cli: fix argv bug just introduced in 2ce0bc6e85f1

Reported by mjacob.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/bin/kallithea_api.py
Show inline comments
 
@@ -56,13 +56,13 @@ def argparser(argv):
 
    )
 
    group.add_argument('--format', dest='format', type=str,
 
            help='output format default: `%s` can '
 
                 '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
 

	
 

	
 
def main(argv=None):
 
    """
 
    Main execution function for cli
kallithea/bin/kallithea_gist.py
Show inline comments
 
@@ -65,13 +65,13 @@ def argparser(argv):
 
                       help='gist lifetime in minutes, -1 (DEFAULT) is forever')
 
    group.add_argument('--format', dest='format', type=str,
 
                       help='output format DEFAULT: `%s` can '
 
                       '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
 

	
 

	
 
def _run(argv):
 
    conf = None
 
    parser, args, other = argparser(argv)
0 comments (0 inline, 0 general)