module

Docopt

Constants

VERSION = "0.3.1"

Class methods

docopt(doc, argv = nil, help = true, version = nil, options_first = false, exit = true) : Hash(String, Nil | String | Int32 | Bool | Array(String))
Source
extras(help, version, options, doc)
Source
formal_usage(section)
Source
parse_argv(tokens, options, options_first = false) : Array(Pattern)
Source
parse_atom(tokens, options) : Array(Pattern)
Source
parse_defaults(doc) : Array(Option)
Source
parse_expr(tokens, options) : Array(Pattern)
Source
parse_long(tokens, options) : Array(Pattern)
Source
parse_pattern(source, options)
Source
parse_section(name, source)
Source
parse_seq(tokens, options) : Array(Pattern)
Source
parse_shorts(tokens, options) : Array(Pattern)
Source

Instance methods

bash_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
Source
fish_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
Source
zsh_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
Source

Nested types