Liking cljdoc? Tell your friends :D

docopt.match


*sep-table*clj

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.
sourceraw docstring

consumecljmultimethod

If command line state matches tree node, update accumulator, else return nil.

If command line state matches tree node, update accumulator, else return nil.
sourceraw docstring

expandcljmultimethod

Expands command line tokens using provided sequence of options.

Expands command line tokens using provided sequence of options.
sourceraw docstring

match-argvclj

(match-argv docmap argv)

Match command-line arguments with usage patterns.

Match command-line arguments with usage patterns.
sourceraw docstring

matchescljmultimethod

If command line state matches tree node, update accumulator, else return nil.

If command line state matches tree node, update accumulator, else return nil.
sourceraw docstring

option-valueclj

(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.
sourceraw docstring

parseclj

(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].
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close