/Getopt.jl

Command-line argument parsing with a similar API to Python's getopt

Primary LanguageJuliaMIT LicenseMIT

Getopt.jl is a Julia package that parses command-line arguments with an API nearly identical to getopt in Python. To install:

julia -e 'using Pkg; Pkg.add("Getopt")'

To use:

for (opt, arg) in getopt(ARGS, "xy:", ["foo", "bar="])
	@show (opt, arg)
end
@show ARGS