mirror of
https://github.com/notwa/rc
synced 2024-06-01 15:33:07 -07:00
regenerate readme
This commit is contained in:
parent
45d888d866
commit
fedb4764a5
|
@ -28,13 +28,13 @@ refer to the [compatibility table](#compatibility) for specifics.
|
||||||
validate the number of arguments in a function.
|
validate the number of arguments in a function.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# usage: myfunc() { argc -(eq|le|ge) [0-9] "$0" "$@" || return; }
|
# usage: myfunc() { argc $# -(eq|le|ge) [0-9] "$0" || return; }
|
||||||
|
|
||||||
myfunc() {
|
myfunc() {
|
||||||
# use one of the following:
|
# use one of the following:
|
||||||
argc -eq N "$0" "$@" || return
|
argc $# -eq N "$0" || return
|
||||||
argc -le N "$0" "$@" || return
|
argc $# -le N "$0" || return
|
||||||
argc -ge N "$0" "$@" || return
|
argc $# -ge N "$0" || return
|
||||||
# where N is an integer between 0 and 9.
|
# where N is an integer between 0 and 9.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user