mercurial/fancyopts.py
changeset 25947 6002e2d95e54
parent 25563 69e8384a436c
child 26587 56b2bcea2529
equal deleted inserted replaced
25946:5e0d80195a0f 25947:6002e2d95e54
     3 #  Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
     3 #  Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others
     4 #
     4 #
     5 # This software may be used and distributed according to the terms of the
     5 # This software may be used and distributed according to the terms of the
     6 # GNU General Public License version 2 or any later version.
     6 # GNU General Public License version 2 or any later version.
     7 
     7 
       
     8 from __future__ import absolute_import
       
     9 
     8 import getopt
    10 import getopt
     9 import util
    11 
    10 from i18n import _
    12 from .i18n import _
       
    13 from . import util
    11 
    14 
    12 def gnugetopt(args, options, longoptions):
    15 def gnugetopt(args, options, longoptions):
    13     """Parse options mostly like getopt.gnu_getopt.
    16     """Parse options mostly like getopt.gnu_getopt.
    14 
    17 
    15     This is different from getopt.gnu_getopt in that an argument of - will
    18     This is different from getopt.gnu_getopt in that an argument of - will