Closed fnky closed 8 years ago
You should not overwrite run()
method of a program. You should only overwrite run()
method of a command.
@vdemedes Then how would I be able to make a program without commands (without hacking around and/or use another library for parsing args) e.g.
$ myProgram someValue anotherValue --option value --flag
Currently there's no way and I don't plan on doing it at the moment. Ronin is suitable for programs with commands. If you need a program, that does only one task, then you better not use Ronin and go for minimist + minimist-options.
When setting global options making a new
Program
and overwritingrun()
method, neither options are passed to arguments nor isthis.global
available.