Matthijs Kooijman added the comment:
One way to make the original example from Victor work, is to use the following
action class:
class ConvertChoices(argparse.Action
Matthijs Kooijman added the comment:
I was today trying to achieve something similar. I also considered the solution
using `type` argument, but that does not seem to play well with the `choices`
argument. I was going to report that as a bug, but this issue seems similar
enough to comment
Matthijs Kooijman added the comment:
One usecase that such a function would be well-suited for is for *displaying*
commands being executed. Then, the commands will be executed as a command+args
array, but can be displayed unambiguously in log output
Change by Matthijs Kooijman :
--
nosy: +Matthijs Kooijman
___
Python tracker
<https://bugs.python.org/issue22454>
___
___
Python-bugs-list mailing list
Unsub
Matthijs Kooijman <[EMAIL PROTECTED]> added the comment:
I've written a new patch, which works a bit better. You can find the new
patch attached.
I've restructed the patch to prevent code duplication. Also, it now
works with other chunks than bext (I had a file with a list chunk