equal
deleted
inserted
replaced
37 args = args[:stopindex] |
37 args = args[:stopindex] |
38 opts, parseargs = pycompat.getoptb(args, options, longoptions) |
38 opts, parseargs = pycompat.getoptb(args, options, longoptions) |
39 args = [] |
39 args = [] |
40 while parseargs: |
40 while parseargs: |
41 arg = parseargs.pop(0) |
41 arg = parseargs.pop(0) |
42 if arg and arg[0] == '-' and len(arg) > 1: |
42 if arg and arg[0:1] == '-' and len(arg) > 1: |
43 parseargs.insert(0, arg) |
43 parseargs.insert(0, arg) |
44 topts, newparseargs = pycompat.getoptb(parseargs,\ |
44 topts, newparseargs = pycompat.getoptb(parseargs,\ |
45 options, longoptions) |
45 options, longoptions) |
46 opts = opts + topts |
46 opts = opts + topts |
47 parseargs = newparseargs |
47 parseargs = newparseargs |