Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaelzhang/shell-argv
The logic of parsing argument vector for shell programming.
https://github.com/kaelzhang/shell-argv
Last synced: 17 days ago
JSON representation
The logic of parsing argument vector for shell programming.
- Host: GitHub
- URL: https://github.com/kaelzhang/shell-argv
- Owner: kaelzhang
- License: other
- Created: 2013-09-10T04:05:16.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-09-10T09:25:51.000Z (about 11 years ago)
- Last Synced: 2024-04-15T12:33:07.120Z (7 months ago)
- Size: 105 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
> Ohhhhhhhh, I will refractor shell-argv in the next version, and support full features.
>
> Just hold on and wait for that, guys.
>
> Or, just do that with me ?# shell-argv
The logic of parsing argument vector for shell programming.
## Usage
Copy the slices of code from 'START' to 'END' in `argv.sh` to `my-shell.sh`
And, for example:
bash my-shell.sh -iv --force --recursive abc def
Then, you will have severial parsed variables available:
### `FLAGS`
The array (I mean the array-like variable in shell) of flags, options or short-hand options
['-i', '-v', '--force', '--recursive']
### `REMAINS`
['abc', 'def']
### Features
`--`
`--xxxx`
`-x`
`-abcd`