1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-06-01 15:33:07 -07:00

regenerate readme

This commit is contained in:
Connor Olding 2021-10-13 23:09:57 -07:00
parent 45d888d866
commit fedb4764a5

View File

@ -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.
} }
``` ```