DaemonMode.jl icon indicating copy to clipboard operation
DaemonMode.jl copied to clipboard

How to run from command line (chaining a second -e)?

Open Moelf opened this issue 5 years ago • 1 comments

Say I originally does julia -e "println(3)", since obviously I can't do:

julia --startup-file=no -e 'using DaemonMode; runargs()' -e "println(3)"

what's the correct syntax?

Moelf avatar Jan 03 '21 08:01 Moelf

Well, actually the way to work with expression should be

julia -e 'using DaemonMode; runexpr("println(3)")'

But the idea of working you are proposing is nice, I actually did not know that you can use "-e" several times in Julia. I am going to add a method to allow that syntax.

dmolina avatar Jan 06 '21 11:01 dmolina