Liking cljdoc? Tell your friends :D

docopt.match


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

space-sepclj

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  , use binding to select another separator character.

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  , use `binding` to select another
separator character.
sourceraw docstring

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

× close