Fixed side effect of monkey patching hindering REPL usage.

I don't think this breaks anything and it fixes the nasty side effect of tampering with the action. This caused argparse to return a list of one argument instead of just returning the argument in some cases after auto-completion was run (in a REPL environment.)