[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]

cmdr::validate::year(n) 1 doc "Cmdr, a framework for command line parsing and dispatch"


cmdr::validate::year - Cmdr - Validation type for years

Table Of Contents


  • package require cmdr::validate::year


Welcome to the Cmdr project, written by Andreas Kupries.

For availability please read Cmdr - How To Get The Sources.

This package provides the validation type ::cmdr::validate::year which accepts both short (2 digit) and long (4 digit) year numbers.

The internal representation is the full number of the validated input, i.e always 4 digits.

The type has no input completion.

The details of the exported API can be found in Cmdr - Writing custom validation types. The chosen default is the "current year".

Bugs, Ideas, Feedback

Both the package(s) and this documentation will undoubtedly contain bugs and other problems. Please report such at Cmdr Tickets.

Please also report any ideas you may have for enhancements of either package(s) and/or documentation.


arguments, command hierarchy, command line completion, command line handling, command tree, editing command line, help for command line, hierarchy of commands, interactive command shell, optional arguments, options, parameters, processing command line, tree of commands