BSD Ports

devel/rubygem-getoptlong 0.2.1 MidnightBSD

GetoptLong for Ruby

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd2, ruby
Categories
devel, rubygems

Description

The GetoptLong class allows you to parse command line options similarly to the GNU getopt_long() C library call. Note, however, that GetoptLong is a pure Ruby implementation.

GetoptLong allows for POSIX-style options like --file as well as single letter options like -f

The empty option -- (two minus symbols) is used to end option processing. This can be particularly important if options have optional arguments.

In the other systems

SystemPortVersion
MidnightBSDdevel/rubygem-getoptlong0.2.1
FreeBSDdevel/rubygem-getoptlong0.2.1
DragonFlydevel/rubygem-getoptlong0.2.1

Install

Binary package:

mport install getoptlong

From mports:

cd /usr/mports/devel/rubygem-getoptlong && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	getoptlong>0:devel/rubygem-getoptlong

Dependencies

Required by 1

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/getoptlong-0.2.1.gem13824fd23f07397b994bf9310d4531cfdb4332629a9b8e8c9c457c32b7edf5bf21ba5
Master sites 1
  • RG