oh of course!  yes, that would help.  although it's still buried in some 
weird direction under .julia (unless i use some kind of install script),

also i think something like

   julia -e "using CRC; main(ARGS)"

might be a useful alternative, but i need to see if i can somehow ignore 
the "-e".

andrew 


On Tuesday, 22 April 2014 22:05:36 UTC-3, Simon Kornblith wrote:
>
> I think you should be able to put:
>
> #!/usr/bin/env julia
>
> at the top of the file and chmod a+rx. Then you can symlink it to 
> /usr/local/bin, add the directory to PATH, etc.
>
> On Tuesday, April 22, 2014 8:07:27 PM UTC-4, andrew cooke wrote:
>>
>>
>> I have a package that also, in a separate file, has a command line 
>> utility.  The utility uses ArgParse (which works nicely) and is run by
>>
>>     julia path/file.jl -opt1 -opt2 arg1 arg2
>>
>> That works fine, but is a bit clunky when the path is something like 
>> /home/andrew/.julia/v0.3/CRC/src/crc.jl
>>
>> Is there a better way of arranging this?  I guess in the far future there 
>> will be standalone executables and the like.  But for now, how can I make 
>> this easy for a user?
>>
>> More context - 
>> https://github.com/andrewcooke/CRC.jl#from-the-command-line<https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fandrewcooke%2FCRC.jl%23from-the-command-line&sa=D&sntz=1&usg=AFQjCNEGcfNPqtHQhhTXxL7mQedVk6eXNA>
>>
>> Thanks,
>> Andrew
>>
>>

Reply via email to