GithubHelp home page GithubHelp logo

power's Introduction

Power

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.

Examples

Or what we’ll call examples but is actually ideas for what Power might do…

If Power were for packaging binary runners…

<pre> module FooBar class Runner def start(port = 8000, interval = 0.01) aliases :port => :p, :interval => :I

  1. magic
    end
    end
    end

Which could be run with:

<pre> $ foobar start -p 4890 -I 0.08 </pre>

Then, the binary foobar would be defined something like this
(possibly):

<pre> require 'foo_bar' FooBar::Runner.send(:include, Power) FooBar::Runner.run!(ARGV) </pre>

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 rails foo),
etc.

This is all just a random idea…

The Name

The name could change. Just had to name it something, you know.

License

Copyright © 2008 Matt Todd.

Licensed under the MIT license.

TODO: copy license text here or in LICENSE file.

power's People

Contributors

mtodd avatar

Stargazers

Angus H. avatar  avatar Matt Sanders avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.