[IPython-dev] Minus signs in argparse line magics
Fri Aug 10 17:39:22 CDT 2012
You can use '--' to halt argument parsing in argparse, so you should be
able to do:
%R -- c(1, -1)
On Fri, Aug 10, 2012 at 3:23 PM, Fernando Perez <email@example.com>wrote:
> On Fri, Aug 10, 2012 at 3:00 PM, Matthew Brett <firstname.lastname@example.org>
> > I couldn't think
> > immediately of a clean way to fix it that wouldn't involve hacking on
> > argparse. Is there a good way?
> Mmmh, me neither. I don't know if disabling short options and
> allowing only -- ones would help, or if its string-walking algorithm
> is independent of the declared options...
> A bit stumped right now, I admit...
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev