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.
Workaround issue with newlines by converting them to another 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 newlines by converting them to another 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.
(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].
Workaround issue with spaces by converting them to another 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 spaces by converting them to another 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 tabs by converting them to another 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 tabs by converting them to another 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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close