Shrimp::CLI
Constructors
Class methods
Override this on a command to customise how its parse errors are
rendered when invoked through self.run. Return true to suppress
kebab's default rendering, false to fall through to it.
parse(args : Array(String), parent_path : Array(String) = [] of String) : self | Kebab::Help | Kebab::Errors
Parses args into either an instance of self, a Kebab::Help
(if the user asked for help), or one of the Kebab::Errors
variants. Never raises.
run(args : Array(String), *forward_args, stdout : IO = STDOUT, stderr : IO = STDERR, **forward_kwargs) : Bool
Parses args and dispatches: calls instance.run(*forward_args, **forward_kwargs)
on success, writes help to stdout, writes errors to stderr.
Returns true on success or help, false on error.
Define self.on_parse_error on a command to customise how errors for that command are rendered.
Instance methods
rom
Source