Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bash-bastion/bash-args
A cute little Bash library for blazing fast argument parsing
https://github.com/bash-bastion/bash-args
basalt bash cli command-line command-line-parser options-parsing shell
Last synced: about 1 month ago
JSON representation
A cute little Bash library for blazing fast argument parsing
- Host: GitHub
- URL: https://github.com/bash-bastion/bash-args
- Owner: bash-bastion
- License: mpl-2.0
- Created: 2021-05-14T16:28:55.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-06T02:00:25.000Z (over 2 years ago)
- Last Synced: 2024-09-07T10:03:18.296Z (4 months ago)
- Topics: basalt, bash, cli, command-line, command-line-parser, options-parsing, shell
- Language: Shell
- Homepage: https://hyperupcall.github.io/bash-args
- Size: 2.8 MB
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-blazingly-fast - bash-args - A cute little Bash library for blazing fast argument parsing (Shell)
README
# bash-args
A cute little Bash library for blazing fast argument parsing
STATUS: IN DEVELOPMENT!
## Summary
- Uses only builtins
- Uses no subshells
- Simple API## Usage
```sh
barg.define_flags \
one \
'--alfa' '-a' '|bool|' 'desc' \
'--bravo' '' 'i' 'desc' \
'' '-charlie' 'i' 'desc' \
END \
subcommand \
ENDbarg.parse_flags "$@"
```## Installation
Use [Basalt](https://github.com/hyperupcall/basalt), a Bash package manager, to add this project as a dependency
```sh
basalt add hyperupcall/bash-args
```