![]() |
![]()
| ![]() |
![]()
NAMEdnsjit.lib.getopt - Parse and handle arguments SYNOPSIS local getopt = require("dnsjit.lib.getopt").new({
DESCRIPTIONA "getopt long" implementation to easily handle command line arguments and display usage. An option is the short name (one character), long name, default value (which also defines the type), help text and extensions. Options are by default required, see extensions to change this. The Lua types allowed are boolean, string, number. The extensions available are:
Option -h and --help are automatically added if the option --help is not already defined. Attributes
Functions
SEE ALSOdnsjit.core(3) AUTHORS and CONTRIBUTORSJerry Lundström (DNS-OARC), Tomáš Křížek (CZ.NIC), Petr Špaček (ISC) Maintained by DNS-OARC https://www.dns-oarc.net/
BUGSFor issues and feature requests please use: https://github.com/DNS-OARC/dnsjit/issues
For question and help please use: admin@dns-oarc.net
|