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
- Host: GitHub
- URL: https://github.com/attractivechaos/getopt.jl
- Owner: attractivechaos
- License: mit
- Created: 2018-09-03T19:25:39.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T01:24:09.000Z (over 7 years ago)
- Last Synced: 2025-02-20T18:50:24.294Z (over 1 year ago)
- Topics: getopt, julia
- Language: Julia
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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