The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.055002 - 2022-02-14

  • Bug fixes
    • benchmarks/grep_vs_search.pl Fix duplicate '-i' option in `grep_vs_search.pl`.
    • t/* Work around GNU readline interaction with xterm. Tests can fail if GNU readline is told to use STDIN/STDOUT: it may inadvertently output a `ESC-[?1034h` sequence ("interpret Meta key, enable 8-bit input"), which does not play well with our `Test::Output` tests.
      • To avoid this, we specify `filehandles => []` to the `Term::CLI` constructor.
      • So far this only manifested itself on OpenBSD 7.0, and only on the i386 build of that. Still, I want my tests to pass...
  • Building / Testing
    • Leave POD test prereqs out of the distribution.
    • Improve test coverage (also add tests for `Term::CLI::Util`).
    • Fix enviroment testing for skipping tests. The `Test::Class` `SKIP_ALL` method does not work as advertised.
  • Enhancements
    • Term::CLI::Util Make find_* routines a little faster. The `last if ...` check when iterating over possible matches is not necessary. A simple unqualified `last` will do.
    • Term::CLI::Argument::Filename
      • Promote `_glob_complete` to `glob_complete`.

Documentation

introduction to Term::CLI class/module structure
tips, tricks, and examples for Term::CLI

Modules

CLI interpreter based on Term::ReadLine
generic parent class for arguments in Term::CLI
class for "boolean" arguments in Term::CLI
class for "enum" string arguments in Term::CLI
class for file name arguments in Term::CLI
base class for numerical arguments in Term::CLI
class for floating point arguments in Term::CLI
class for integer arguments in Term::CLI
class for basic string arguments in Term::CLI
generic base class for Term::CLI classes
Class for (sub-)commands in Term::CLI
A generic 'help' command for Term::CLI
generic parent class for elements in Term::CLI
localizations for Term::CLI
English localizations for Term::CLI
Dutch localizations for Term::CLI
Term::ReadLine compatibility layer for Term::CLI
Manage command arguments in Term::CLI
Role for (sub-)commands in Term::CLI
Role for generating help text in Term::CLI
Keep a "state" hash in Term::CLI objects
utility functions for Term::CLI(3p)