https://github.com/filmil/gotopt2
gotopt2: a self-contained shell flags or options parser, written in go
https://github.com/filmil/gotopt2
Last synced: 23 days ago
JSON representation
gotopt2: a self-contained shell flags or options parser, written in go
- Host: GitHub
- URL: https://github.com/filmil/gotopt2
- Owner: filmil
- License: apache-2.0
- Created: 2019-03-09T20:11:15.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-23T01:22:48.000Z (about 1 month ago)
- Last Synced: 2025-03-23T02:25:01.232Z (about 1 month ago)
- Language: Go
- Size: 66.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `gotopt2`: a self-contained shell flags or options parser, written in go
 | 
`gotopt2` is a program that outputs its command line arguments as a snippet of
shell script that can be readily evaluated.You can use it to parse command line options in your shell script instead of
rolling your own flag parsing code, or using `getopt` or similar.## Quick example
Here is how to check, quickly, what `gotopt2` does for you.
```console
gotopt2 -a -b=foo -c=10 --name value arg1 arg2 --things=eenie,meenie <