An open API service indexing awesome lists of open source software.

https://github.com/attractivechaos/getopt.jl

Command-line argument parsing with a similar API to Python's getopt
https://github.com/attractivechaos/getopt.jl

getopt julia

Last synced: 16 days ago
JSON representation

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

Awesome Lists containing this project

README

          

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

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

To use:

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

[1]: https://docs.python.org/3/library/getopt.html