[IPython-dev] Minus signs in argparse line magics

Fernando Perez fperez.net@gmail....
Fri Aug 10 17:44:32 CDT 2012


On Fri, Aug 10, 2012 at 3:39 PM, MinRK <benjaminrk@gmail.com> wrote:
> You can use '--' to halt argument parsing in argparse, so you should be able
> to do:
>
> %R -- c(1, -1)

Yes, that was mentioned in Matthew's reply; we were wondering about
ways of getting that effect without the explicit --.  Given how
loosely specified the distinction between what can be an argument and
what can't is, I don't see a magical solution here.


More information about the IPython-dev mailing list