mirror of
https://github.com/notwa/rc
synced 2024-07-01 03:07:13 -07:00
document argc
This commit is contained in:
parent
d47c10c0ca
commit
5d57d6daf4
4
sh/argc
4
sh/argc
|
@ -4,9 +4,9 @@
|
||||||
# YES_DASH
|
# YES_DASH
|
||||||
# YES_ASH
|
# YES_ASH
|
||||||
|
|
||||||
argc() { ### @-
|
argc() { ### @- validate the number of arguments in a function.
|
||||||
### ```sh
|
### ```sh
|
||||||
### # usage:
|
### # usage: myfunc() { argc -(eq|le|ge) [0-9] "$0" "$@" || return; }
|
||||||
###
|
###
|
||||||
### myfunc() {
|
### myfunc() {
|
||||||
### # use one of the following:
|
### # use one of the following:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user