i'm writing python programs run other programs, like:
my-wrapper-program --foo --bar git commit --all
here, foo , bar arguments my-wrapper-program, , git commit --all
sub-command i'm interested in running. how do in argparse, without having specify --
special argument? (the common case simplest one: my-wrapper-program command
.)
(with optparse, can use disallow_interspersed_args=false
.)
this page has suggestions.
Comments
Post a Comment