A command line parser.
Because, lets face it, they all kinda suck some which way or another.
Not that this will be an improvement, just my shot in the dark.
Or what we’ll call examples but is actually ideas for what Power might do…
If Power were for packaging binary runners…
def start(port = 8000, interval = 0.01)
aliases :port => :p, :interval => :I
Which could be run with:
$ foobar start -p 4890 -I 0.08
Then, the binary
foobar would be defined something like this
We’d need to use Ruby2Ruby or ParseRuby to figure out the params, plus there
are certain option classes this doesn’t allow for: options without default
values (and those that do have specific types), options that are not
param-based (ie: the name of the app to generate in
This is all just a random idea…
The name could change. Just had to name it something, you know.
Copyright © 2008 Matt Todd.
Licensed under the MIT license.
TODO: copy license text here or in LICENSE file.