cli
cli copied to clipboard
Yet another Crystal library for building command-line interface applications.
The error is: ``` Error: abstract `def Enumerable(T)#each(&block)` must be implemented by Callback::ResultSet(T) ``` The code is one of your samples: ``` require "cli" class Hello < Cli::Command class Options...
(and formatter) A bump of optarg with https://github.com/mosop/optarg/pull/7 should be included in the next release.
I like to implement: ``` command --option subcommand --suboption ``` and the subcommand command can get the --option option.
With a structure like this: ```Crystal include Cli class To < SuperCommand command "go-to", default: true class GoTo < Command def run # ... end class Options arg "where", required:...