BSD Ports

misc/getopt 1.1.6_2 DragonFly

Replacement for getopt(1) that supports GNU-style long options

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2
Categories
misc
Package size
24.8 KiB, 54.1 KiB installed

Description

Rewrite of getopt(1) with the following features:

* It can do anything that the GNU getopt(3) routines can do. * It can cope with spaces and shell metacharacters within arguments. * It can parse long parameters. * It can shuffle parameters, so you can mix options and other parameters on the command-line. * It can be easily identified as an enhanced getopt(1) from within shell scripts. * It can report parse errors as coming from the shell script. * It compiles cleanly with both libc-5 and glibc-2.

In the other systems

SystemPortVersion
DragonFlymisc/getopt1.1.6_2
FreeBSDmisc/getopt2.42.4
NetBSDmisc/getopt1.1.6nb1
MidnightBSDmisc/getopt1.1.6_1

Install

Binary package:

pkg install getopt

From DPorts:

cd /usr/dports/misc/getopt && make install clean

Dependencies