Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samugi/simple-clargs
Simple module to manage command line args in go
https://github.com/samugi/simple-clargs
Last synced: 23 days ago
JSON representation
Simple module to manage command line args in go
- Host: GitHub
- URL: https://github.com/samugi/simple-clargs
- Owner: samugi
- License: gpl-3.0
- Created: 2020-10-24T12:42:48.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-06T18:36:29.000Z (almost 4 years ago)
- Last Synced: 2024-09-27T09:18:52.369Z (about 1 month ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-clargs
Simple module to manage command line args in go## Example usage
```
OptionInput := clargs.New("-i", "--input", "Input file path", true, true)
OptionOutput := clargs.New("-o", "--output", "Ouput file path", true, false)options := []*clargs.Option{&OptionInput, &OptionOutput}
args := os.Args[1:]usage := "./executable [options...]"
clargs.Init(usage, options, args)
clargs.CheckArgs()
```