Mercurial > hg
comparison mercurial/fancyopts.py @ 8230:ec98f35e3e16
fancyopts: add copyright and license header
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 26 Apr 2009 01:56:52 +0200 |
parents | 88887054d277 |
children | 0bf0045000b5 |
comparison
equal
deleted
inserted
replaced
8229:ddf3d6656e7c | 8230:ec98f35e3e16 |
---|---|
1 # fancyopts.py - better command line parsing | |
2 # | |
3 # Copyright 2005-2009 Matt Mackall <mpm@selenic.com> and others | |
4 # | |
5 # This software may be used and distributed according to the terms of the | |
6 # GNU General Public License version 2, incorporated herein by reference. | |
7 | |
1 import getopt | 8 import getopt |
2 | 9 |
3 def gnugetopt(args, options, longoptions): | 10 def gnugetopt(args, options, longoptions): |
4 """Parse options mostly like getopt.gnu_getopt. | 11 """Parse options mostly like getopt.gnu_getopt. |
5 | 12 |