I have implemented in my python code a callback for variable arguments similar to what can be found here:
hxxp://docs.python.org/library/optparse.html#callback-example-6-variable-arguments
Adding the option like this:
parser.add_option("-c", "--callback", dest="vararg_attr", action="callback", callback=vararg_callback)
The problem is, that there is no indication for the user that the option requires extra input:
Options:
-h, --help show this help message and exit
-c, --callback
Is there any way to change optparse's usage so that the usage will print something like:
-c=LIST, --callback=LIST
Thanks for your help!
Ben