BSD Ports

devel/lua-alt-getopt 0.8.0 NetBSD

Lua API for getopt similar to getopt_long(3)

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel, lua
Package size
3.7 KiB, 4.2 KiB installed

Description

lua_altgetopt is a module for Lua programming language for processing application's arguments the same way BSD/GNU getopt_long(3) functions do.

Main features and goals:

  1. compatibility to SUS "Utility Syntax Guidelines" http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02 guidelines 3-13.
  2. This module is for plain Lua
  3. No extra dependencies
  4. No hooks, no functional tricks ;-)
  5. Support for long options, e.g. compatibility with getopt_long(3) C function present in *BSD and GNU libc.
  6. Long options may optionally have one-char synonym or other long synonym
  7. Strict error checking (checks for an incorrect use of options)
  8. alt_getopt.lua is a Lua module.

Install

Binary package:

pkgin install lua51-alt-getopt

From pkgsrc:

cd /usr/pkgsrc/devel/lua-alt-getopt && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.8.0
NetBSD 10.1 aarch640.8.0
SmartOS / illumos x86_640.8.0
macOS 15 arm640.8.0

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
lua52-alt-getopt-0.8.0, lua53-alt-getopt-0.8.0, lua54-alt-getopt-0.8.0, lua55-alt-getopt-0.8.0