hgext/githelp.py
changeset 41365 876494fd967d
parent 40295 fa88170c10bb
child 41414 031d91623fdc
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
    81     while True:
    81     while True:
    82         try:
    82         try:
    83             args = fancyopts.fancyopts(list(args), cmdoptions, opts, True)
    83             args = fancyopts.fancyopts(list(args), cmdoptions, opts, True)
    84             break
    84             break
    85         except getopt.GetoptError as ex:
    85         except getopt.GetoptError as ex:
    86             flag = None
       
    87             if "requires argument" in ex.msg:
    86             if "requires argument" in ex.msg:
    88                 raise
    87                 raise
    89             if ('--' + ex.opt) in ex.msg:
    88             if ('--' + ex.opt) in ex.msg:
    90                 flag = '--' + ex.opt
    89                 flag = '--' + ex.opt
    91             elif ('-' + ex.opt) in ex.msg:
    90             elif ('-' + ex.opt) in ex.msg: