[IPython-dev] Minus signs in argparse line magics
benjaminrk at gmail.com
Fri Aug 10 18:39:22 EDT 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 <fperez.net at gmail.com>wrote:
> On Fri, Aug 10, 2012 at 3:00 PM, Matthew Brett <matthew.brett at gmail.com>
> > 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
> IPython-dev at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev