mirror of
https://github.com/notwa/rc
synced 2024-11-05 03:29:02 -08:00
document argc
This commit is contained in:
parent
d47c10c0ca
commit
5d57d6daf4
1 changed files with 2 additions and 2 deletions
4
sh/argc
4
sh/argc
|
@ -4,9 +4,9 @@
|
|||
# YES_DASH
|
||||
# YES_ASH
|
||||
|
||||
argc() { ### @-
|
||||
argc() { ### @- validate the number of arguments in a function.
|
||||
### ```sh
|
||||
### # usage:
|
||||
### # usage: myfunc() { argc -(eq|le|ge) [0-9] "$0" "$@" || return; }
|
||||
###
|
||||
### myfunc() {
|
||||
### # use one of the following:
|
||||
|
|
Loading…
Reference in a new issue