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:
- compatibility to SUS "Utility Syntax Guidelines" http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02 guidelines 3-13.
- This module is for plain Lua
- No extra dependencies
- No hooks, no functional tricks ;-)
- Support for long options, e.g. compatibility with getopt_long(3) C function present in *BSD and GNU libc.
- Long options may optionally have one-char synonym or other long synonym
- Strict error checking (checks for an incorrect use of options)
- 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.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.8.0 |
| NetBSD 10.1 aarch64 | 0.8.0 |
| SmartOS / illumos x86_64 | 0.8.0 |
| macOS 15 arm64 | 0.8.0 |
Dependencies
Run dependencies 1
Required by 2
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