module Opts
Direct including types
Defined in:
opts/error.cropts/macro.cr
opts/opts.cr
Constant Summary
-
ARGS =
""
-
PROGRAM =
("#{PROGRAM_NAME}".split("/")).last
-
USAGE =
"{{version}}\n\nUsage: {{program}} {{args}}\n\nOptions:\n{{options}}"
-
VERSION =
(Shard.git_description.split(/\s+/, 2)).last
Instance Method Summary
- #args : Array(String)
- #argv : Array(String)
- #argv=(argv : Array(String))
- #new_option_parser : OptionParser
- #on_error(err : Exception)
- #run(argv : Array(String))
-
#run
[app flow] step3 : main routine
-
#setup(argv : Array(String))
[app flow] step1 : setup args
-
#setup
[app flow] step2 : setup apps
Macro Summary
-
option(name, long, desc)
with block works only with
Reference
class - option(name, long, desc, default)
- option(name, short, long, desc, default)
- options(*names)