The following works:
byexample .... -o '+foo -bar' ....
but the following doesn't
byexample .... -o '-bar' ....
In the latter, the -bar is treated as an option of byexample instead of be treated as an argument for -o
This is probably a bug/limitation in argparse. What could we do to improve this?
May be allowing a dummy option that begins with "+" to disambiguate? Like:
byexample .... -o '+dummy -bar' ....
or just
byexample .... -o '+ -bar' ....