Workaround issue with some characters by converting them to a separator character.
See https://github.com/nubank/docopt.clj/pull/5 for details.
If you have issues with this, use binding
to select another separator
string.
Workaround issue with some characters by converting them to a separator character. See https://github.com/nubank/docopt.clj/pull/5 for details. If you have issues with this, use `binding` to select another separator string.
If command line state matches tree node, update accumulator, else return nil.
If command line state matches tree node, update accumulator, else return nil.
Expands command line tokens using provided sequence of options.
Expands command line tokens using provided sequence of options.
(match-argv docmap argv)
Match command-line arguments with usage patterns.
Match command-line arguments with usage patterns.
If command line state matches tree node, update accumulator, else return nil.
If command line state matches tree node, update accumulator, else return nil.
(option-value [{:keys [long short default-value]} value])
Helper function for 'match-argv' to present option values and deal with defaults.
Helper function for 'match-argv' to present option values and deal with defaults.
(parse {:keys [acc shorts-re longs-re]} argv)
Parses the command-line arguments into a matchable state [acc remaining-option-values remaining-words].
Parses the command-line arguments into a matchable state [acc remaining-option-values remaining-words].
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close