mercurial/fancyopts.py
changeset 33103 db8531c45953
parent 32291 bd872f64a8ba
child 35169 898c6f812a51
equal deleted inserted replaced
33102:1b6946f87c50 33103:db8531c45953
    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