Clojure version of GNU getopt. This module provides one function: getopt.
Clojure version of GNU getopt. This module provides one function: getopt.
(getopt args shortopts)
(getopt args shortopts longopts)
(getopt <args> <options> [<long options>]) -> [opts, args]
This function works like getopt(), except that GNU style scanning mode is used by default. This means that option and non-option arguments may be intermixed. The getopt() function stops processing options as soon as a non-option argument is encountered.
If the first character of the option string is `+', or if the environment variable POSIXLY_CORRECT is set, then option processing stops as soon as a non-option argument is encountered.
(getopt <args> <options> [<long options>]) -> [opts, args] This function works like getopt(), except that GNU style scanning mode is used by default. This means that option and non-option arguments may be intermixed. The getopt() function stops processing options as soon as a non-option argument is encountered. If the first character of the option string is `+', or if the environment variable POSIXLY_CORRECT is set, then option processing stops as soon as a non-option argument is encountered.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close