Getopt::Plus 0.98 review

Download
by rbytes.net on

Getopt::Plus is a Perl module with options wrapper with standard options, help system and more. FILE_SIZE_HUMAN Map from file s

License: Perl Artistic License
File size: 46K
Developer: Martyn J. Pearce
0 stars award from rbytes.net

Getopt::Plus is a Perl module with options wrapper with standard options, help system and more.

FILE_SIZE_HUMAN

Map from file size in bytes to human name, as hashref, keys being name (full name, lowercase, no trailing 's') and abbrev (one/two-letter abbreviation).
Option Types

Permissable values to the type field of an option specifier.

OPT_FLOAT

OPT_INT

OPT_STRING

OPT_FDLEVEL

OPT_BOOLEAN

Error Codes

ERR_OK

Not an error at all. Hence the name.

ERR_ABNORMAL

Not so much an error as a non-erroneous circumstance worthy of signalling, e.g., grep finding no matches.

ERR_UTILITY

Again, not really an error, rather a utility function being called --- e.g., the --help or --version. This gets an error code because it is almost certainly an error to call from batch scripts.

ERR_USAGE

The program was called wrong.

ERR_IO_READ

Some problem reading from disk or network (system read).

ERR_IO_WRITE

Some problem writing to disk or network (system write).

ERR_DB_READ

Some problem reading from db or similar (application read).

ERR_DB_WRITE

Some problem writing to db or similar (application write).

ERR_EXTERNAL

Some problem with an external application.

ERR_INTERNAL

An internal logic error (the sort of thing that should never happen, but has been caught by an internal assertion or sanity check).

ERR_INPUT

Some problem with the input file (which was read fine, but contains bad data).

Requirements:
Perl

Getopt::Plus 0.98 search tags