https://github.com/tearran/its_getops
self-help is a bash script example of getops flags such as -h
https://github.com/tearran/its_getops
bash getopts help sh
Last synced: 2 months ago
JSON representation
self-help is a bash script example of getops flags such as -h
- Host: GitHub
- URL: https://github.com/tearran/its_getops
- Owner: Tearran
- License: gpl-2.0
- Created: 2022-05-13T10:10:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-20T20:57:55.000Z (about 4 years ago)
- Last Synced: 2025-04-04T19:49:46.473Z (about 1 year ago)
- Topics: bash, getopts, help, sh
- Language: Shell
- Homepage:
- Size: 83 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Get Help
get-help is a bash script example of get ops flags
## Features
- getops example ( known flags -v -h )
- $ `get-help -h`
```bash
Usage: get-help [ -h ] [ --help ]
Options:
-h Print this help.
-v Print version info.
```
- Chose any filename try:
- $ `cp ./get-help ./libhelp && bash ./libhelp -h`
- Blinking unknown flag
- $ `get-help -x`
```bash
?! Say What !?
```