| 1 |
TODO list for Perl module Getopt::Lucid |
| 2 |
|
| 3 |
#--------------------------------------------------------------------------# |
| 4 |
# Bugs |
| 5 |
#--------------------------------------------------------------------------# |
| 6 |
|
| 7 |
- repeated parameters should be OK -- later should override. Could add |
| 8 |
a "unique" modifier for original behavior |
| 9 |
|
| 10 |
#--------------------------------------------------------------------------# |
| 11 |
# Features to add |
| 12 |
#--------------------------------------------------------------------------# |
| 13 |
|
| 14 |
- new option types: |
| 15 |
- Version( $string ) -- defaults to "--version" and preempts exceptions |
| 16 |
- prints $VERSION of script |
| 17 |
- Help( $string ) -- defaults to "--help|-h|-?" and preempts exceptions |
| 18 |
- prints any usage information defined in spec? |
| 19 |
- optional coderef to handle help (given rest of command line as args) |
| 20 |
- create spec modifier with coderef to denote a potential command |
| 21 |
- dispatch to command immediately when seen & pass the rest of the |
| 22 |
array for further processing -- maybe gets back modified command line |
| 23 |
if it comes back at all |
| 24 |
- commands() function to give list of command seen on command line (?) |
| 25 |
- dispatch() function to call, in order, the list of commands (?) |
| 26 |
- Usage information in spec and printed by a separate function |
| 27 |
- optional name for params usage("msg", "FILE") --> --input=FILE |
| 28 |
- usage("msg", "LABEL", "VALUE") --> --keypair LABEL=VALUE |
| 29 |
- For keypair validation, pass *both* key and value to a validation |
| 30 |
subroutine (allowing custom validation by key) |
| 31 |
- Callbacks (?) |
| 32 |
- option to allow unrecognized dash-prefixed options without exception |
| 33 |
- "cuddle" parameters -- e.g. "-Ilib" is "-I lib" |
| 34 |
|
| 35 |
#--------------------------------------------------------------------------# |
| 36 |
# Bugfixes/technical/other |
| 37 |
#--------------------------------------------------------------------------# |
| 38 |
|
| 39 |
- test how negation is handled under $STRICT |
| 40 |
- write cookbook |
| 41 |
- refactor ugly code (module and tests) |
| 42 |
- Allow keypairs to escape an equals sign for use in keys(?) -- e.g. |
| 43 |
"define is\==value" giving "is=" => "value" (Does anyone really need |
| 44 |
this?) |
| 45 |
|