module Docopt
Extended Modules
Defined in:
bash_completion.crdocopt.cr
docopt/version.cr
fish_completion.cr
zsh_completion.cr
Constant Summary
-
VERSION =
"0.3.0"
Class Method Summary
- .docopt(doc, argv = nil, help = true, version = nil, options_first = false, exit = true) : Hash(String, Nil | String | Int32 | Bool | Array(String))
- .extras(help, version, options, doc)
- .formal_usage(section)
- .parse_argv(tokens, options, options_first = false) : Array(Pattern)
- .parse_atom(tokens, options) : Array(Pattern)
- .parse_defaults(doc) : Array(Option)
- .parse_expr(tokens, options) : Array(Pattern)
- .parse_long(tokens, options) : Array(Pattern)
- .parse_pattern(source, options)
- .parse_section(name, source)
- .parse_seq(tokens, options) : Array(Pattern)
- .parse_shorts(tokens, options) : Array(Pattern)
Instance Method Summary
- #bash_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
- #fish_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
- #zsh_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
Class Method Detail
def self.docopt(doc, argv = nil, help = true, version = nil, options_first = false, exit = true) : Hash(String, Nil | String | Int32 | Bool | Array(String))
#
Instance Method Detail
def bash_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
#
def fish_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
#
def zsh_completion(cmd : String, help : String, custom_completions = {} of String => String) : String
#