Getopt.jl

Command-line argument parsing with a similar API to Python's getopt
Author attractivechaos
Popularity
1 Star
Updated Last
3 Years Ago
Started In
September 2018

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