Is Arc suitable for use as a scripting language? When attempting to run: $ arc app.arc -arg1 -arg2
It seems that 'arc' attempts to run each argument as an arc file. $ cat g.arc
(prn ($.current-command-line-arguments))
$ arc g.arc -arg1
#(g.arc -arg1)
call-with-input-file: cannot open input file: "/home/hasenj/code/playground/-arg1" (No such file or directory; errno=2)
The 'arc' command here is a symlink to arc.sh from Anarki. I suppose I could hack that to only accept one .arc file, but I was wondering if there's already an accepted mechanism for doing this kind of thing.Does Arc actually have any functions/macros for parsing command arguments? Or do I just to drop into Racket with '$ ? |