]> www.infradead.org Git - users/dhowells/kafs-utils.git/commit
Save raw argument list for each switch
authorDavid Howells <dhowells@redhat.com>
Thu, 10 Apr 2014 10:19:56 +0000 (11:19 +0100)
committerDavid Howells <dhowells@redhat.com>
Thu, 10 Apr 2014 10:19:56 +0000 (11:19 +0100)
commite242261a463fb1fa7343f5c0cc5651f11919b2aa
tree9fca5674154aa972ab2bf0752f0b37d4cef9c6e5
parentebdfc57fda7bcf425b3935b035bd5866f79e28c0
Save raw argument list for each switch

Several of the switch parameters have their argument lists cooked by the
argument parser.  This means we cannot get at the original string(s) when
producing error messages.

Save the raw argument list for each switch in the parameters dictionary as a
list of strings attached to a key of "raw.<switchname>".

Signed-off-by: David Howells <dhowells@redhat.com>
suite/argparse.py