]> arthur.barton.de Git - bup.git/commit
options: allow user to specify an alternative to getopt.gnu_getopt.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 21 Mar 2010 04:36:31 +0000 (00:36 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 21 Mar 2010 05:50:22 +0000 (01:50 -0400)
commitf168a50f607750ff60cbe90a908dd1e4a6834d89
treeb6d0cfde1159fe1541ad17d5bba493429940685f
parenta408ebb98b3fbf7b766f93ee20456e830deef23e
options: allow user to specify an alternative to getopt.gnu_getopt.

The most likely alternative is getopt.getopt, which doesn't rearrange
arguments.  That would mean "-a foo -p" is considered as the option "-a"
followed by the non-option arguments ['foo', '-p'].

The non-gnu behaviour is annoying most of the time, but can be useful when
you're receiving command lines that you want to pass verbatim to someone
else.
lib/bup/options.py