# [IPython-dev] Minus signs in argparse line magics

Aaron Meurer asmeurer@gmail....
Fri Aug 10 22:35:57 CDT 2012

Can you add some logic that says as soon as the first character of an
argument is not -, then the rest should be interpreted as R code?
Obviously that won't work for something like %R -1, or even %R -X,
where X is an R variable and a real option, but it should handle cases
like this where the - clearly doesn't denote an option.

Aaron Meurer

On Fri, Aug 10, 2012 at 9:08 PM, Fernando Perez <fperez.net@gmail.com> wrote:
> On Fri, Aug 10, 2012 at 4:09 PM, Thomas Kluyver <takowl@gmail.com> wrote:
>> However, in the case of rmagic:
>>
>> - It's not much use without options to specify input & output variables
>> - Some uses can't easily be replaced by cell magics, for instance if
>> you want to call it in a (Python) loop.
>
> Indeed, and for this reason I don't really see any solution other than
> using the official -- mechanism, as ugly as it may be in some cases.
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev