diff options
author | miwi <miwi@FreeBSD.org> | 2008-11-10 07:05:04 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-11-10 07:05:04 +0800 |
commit | 75480dc1193fd1c8bee29cd39437d4234ed5fcf2 (patch) | |
tree | 3f354793658dda647e5e25533497ced28fb2c7d5 /devel/libmpcbdm | |
parent | c21bb933d0fc5c80c12c2287d1cf7ab2a1d75d98 (diff) | |
download | freebsd-ports-gnome-75480dc1193fd1c8bee29cd39437d4234ed5fcf2.tar.gz freebsd-ports-gnome-75480dc1193fd1c8bee29cd39437d4234ed5fcf2.tar.zst freebsd-ports-gnome-75480dc1193fd1c8bee29cd39437d4234ed5fcf2.zip |
main.rb features the following:
- unification of option, argument, keyword, and environment
parameter parsing
- auto generation of usage and help messages
- support for mode/sub-commands
- io redirection support
- logging hooks using ruby's built-in logging mechanism
- intelligent error handling and exit codes
- use as dsl or library for building Main objects
- parsing user defined ARGV and ENV
- zero requirements for understanding the obtuse apis of any
command line option parsers
- leather pants
In short main.rb aims to drastically lower the barrier to writing
uniform command line applications.
WWW: http://codeforpeople.com/lib/ruby/main/
PR: ports/128664
Submitted by: Wen Heping <wenheping at gmail.com>
Diffstat (limited to 'devel/libmpcbdm')
0 files changed, 0 insertions, 0 deletions