koraktor / rubikon

A simple to use, yet powerful Ruby framework for building console-based applications.
http://koraktor.github.com/rubikon
BSD 3-Clause "New" or "Revised" License
93 stars 2 forks source link

Allow named arguments for options #3

Closed koraktor closed 14 years ago

koraktor commented 14 years ago

Option definitions should allow named arguments for easier access and more descriptive help screens.

Example:

option :user, [:name]

That way the argument could be accessed via args[:user][:name] instead of the more cryptic args[:user][0]. Additionally a (not yet existing) command help screen could be more verbose:

app command [--user <name>]  
koraktor commented 14 years ago

Added support for named arguments

Closed by 248cfd8c0935ddecf567487e23e11cc3eb9738d2