A standalone test class to exercise the InputOptions class.
You can work with the InputOptions class in isolation to
get a feel for what it does,
using the inner class InputOptions.Test.
Invoke the class as a main program.
The argument choices are:
main(?LIST) -- displays recommended test sequence
main(name-test) -- displays diagnostics for InputOptions::Test class
main(name-inputoptions) -- displays diagnostics for InputOptions class
main(no-init) -- no diagnostics, as $settings not used by Data::Diagnostic
main(validate) -- checks validation of parameters by paramMap
main(all) -- displays diagnostics for all classes
main(mode1 - mode4) -- 4 tests checking mode selection of params
main(cmd-override) -- override config value with cmdline value
main(cmd-override-ignored) -- ignore cmdline override due to no request flag
main(cmd-override-pwd) -- override config value with password required
main(cmd-override-pwd-invalid) -- ignore override due to invalid password
main("a=x","b=y",...) -- uses the specified command-line settings
main("filename","a=x","b=y",...)
-- reads config file, and overrides with the command-line settings
(Note that if you use a configuration file, to actually see any output
you must at least turn on the bit for STDERR with OUTPUT_DIAG=2.)
Try this, for example:
create a configuration file called settings.conf
which defines INPUTOPTIONS_DIAG=16.
Run this: