On Thursday, October 30, 2014 11:42:38 PM UTC-7, Daniel Carrera wrote: > > The point is that Julia will parse the entire line and form a parse tree > before it begins to interpret the instruction. Therefore, the @run line has > to parse correctly as valid Julia syntax. > > If you want to type fewer quotation marks, one could make a macro that > takes everything as one string: > > @run "test.jl --fast a -r 3" > > The macro can split the string along the spaces. >
Note that macros that are meant to be called with a single string can be non-standard string literals: http://julia.readthedocs.org/en/latest/manual/metaprogramming/#non-standard-string-literals So you could have run"test.jl --fast a -r 3" by defining macro run_str(s) # ... end