BSD Ports

devel/ruby-optimist 3.0.1 NetBSD

Commandline option parser for Ruby

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel, ruby
Package size
63.2 KiB, 183.1 KiB installed

Description

optimist

Description

Optimist is a commandline option parser for Ruby that just gets out of your way. One line of code per option is all you need to write. For that, you get a nice automatically-generated help page, robust option parsing, and sensible defaults for everything you don't specify.

Features

* Dirt-simple usage. * Single file. Throw it in lib/ if you don't want to make it a Rubygem dependency. * Sensible defaults. No tweaking necessary, much tweaking possible. * Support for long options, short options, subcommands, and automatic type validation and conversion. * Automatic help message generation, wrapped to current screen width.

Requirements

* A burning desire to write less code.

In the other systems

SystemPortVersion
NetBSDdevel/ruby-optimist3.0.1
OpenBSDdevel/ruby-optimist3.2.1

Install

Binary package:

pkgin install ruby33-optimist

From pkgsrc:

cd /usr/pkgsrc/devel/ruby-optimist && make install clean

Dependencies

Run dependencies 1
Required by 1

Configuration

No options to configure.

Service scripts
none
Flavors
ruby34-optimist-3.0.1, ruby40-optimist-3.0.1