The ARGS variable is the basic mechanism by which script arguments are
exposed, but you may also want to checkout ArgParse.jl
<http://argparsejl.readthedocs.org/en/latest/> or DocOpt.jl
<https://github.com/docopt/DocOpt.jl> for more systematic ways of handling
arguments and options. But often just popping stuff off of ARGS is enough
for simple tools.

On Tue, Mar 29, 2016 at 4:13 PM, Yichao Yu <[email protected]> wrote:

>
> On Mar 29, 2016 4:11 PM, <[email protected]> wrote:
> >
> > Hi all,
> >
> >
> > I'm wanting to write a short program in Julia to analyze some data from
> a series of long files. I'm coming from a shell scripting background and am
> new to Julia but would like to switch to Julia for these types of tasks. I
> like to write the scripts to be pretty generic and to take arguments from
> the command line in order to determine which series of files the data is
> read from and how it is processed. I've read a lot of the Julia
> documentation and some of the older threads on this google group, but I
> haven't been able to find anything definitive on a) if Julia currently
> supports reading in arguments from the command line and b) how any examples
> of how that would be coded.
> >
> > If anyone has any experience with this, I would like to hear about it.
>
> docs.julialang.org/en/latest/stdlib/constants/?highlight=args#Base.ARGS
>
> Use as any other string arrays
>
> >
> > Thanks all,
> >
> > Amelia
> >
>

Reply via email to