(Not sure how to edit my message) Actually, I ran it how you did and it 
worked fine. But I'm still not sure why it won't run when I use 
include("arg.jl").

On Thursday, January 7, 2016 at 7:09:47 PM UTC-5, Uthsav Chitra wrote:
>
> I opened Julia in Terminal, made a file with that text called 'arg.jl', 
> and ran
>
> include("arg.jl").
>
> On Thursday, January 7, 2016 at 4:34:00 PM UTC-5, Kevin Squire wrote:
>>
>> Hello Uthsav, 
>>
>> Works for me:
>>
>> $ julia0.3 argparse_example3.jl --opt1 1 2 3
>> Parsed args:
>>   arg1  =>  {"2","3"}
>>   karma  =>  0
>>   arg2  =>  {"no_arg_given"}
>>   opt1  =>  1
>>
>> How are you trying to run that code?
>>
>> On Thu, Jan 7, 2016 at 12:36 PM, Uthsav Chitra <uthsav...@brown.edu> 
>> wrote:
>>
>>> I'm using Julia v0.3.9 right now. I recently updated all my packages (I 
>>> haven't opened Julia in a couple months), including ArgParse. The macro 
>>> @add_arg_table isn't recognized though. In particular, I tried running 
>>> example code here 
>>> <https://github.com/carlobaldassi/ArgParse.jl/blob/master/examples/argparse_example3.jl>,
>>>  
>>> but I get the following error:
>>>
>>> *ERROR: @add_arg_table not defined*
>>>
>>> * in include at 
>>> /Applications/Julia-0.3.9.app/Contents/Resources/julia/lib/julia/sys.dylib*
>>>
>>> * in include_from_node1 at 
>>> /Applications/Julia-0.3.9.app/Contents/Resources/julia/lib/julia/sys.dylib*
>>>
>>> *while loading /Users/Uthsav/Desktop/Walking The Interactome 
>>> Work/arg.jl, in expression starting on line 42*
>>>
>>>
>>> This is essentially the problem I'm having in my own code. I looked but 
>>> couldn't find any information about this besides what it says on the 
>>> Github, which is that the macro @add_arg_table should still work. Any help 
>>> would be greatly appreciated. Thanks a lot!
>>>
>>
>>

Reply via email to