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>
# Call the syntax checker
syntax = match[1]
+ result["raw." + match[0]] = params
result[match[0]] = syntax(match[0], params)
# Check for missing required arguments