File: Todo

package info (click to toggle)
libgetopt-lucid-perl 1.07-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 364 kB
  • ctags: 68
  • sloc: perl: 855; makefile: 2
file content (45 lines) | stat: -rw-r--r-- 2,097 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
TODO list for Perl module Getopt::Lucid

#--------------------------------------------------------------------------#
# Bugs
#--------------------------------------------------------------------------#

- repeated parameters should be OK -- later should override.  Could add 
  a "unique" modifier for original behavior

#--------------------------------------------------------------------------#
# Features to add
#--------------------------------------------------------------------------#

- new option types:  
  - Version( $string ) -- defaults to "--version" and preempts exceptions
    - prints $VERSION of script
  - Help( $string ) -- defaults to "--help|-h|-?" and preempts exceptions
    - prints any usage information defined in spec?
    - optional coderef to handle help (given rest of command line as args)
- create spec modifier with coderef to denote a potential command
    - dispatch to command immediately when seen & pass the rest of the 
      array for further processing -- maybe gets back modified command line
      if it comes back at all
    - commands() function to give list of command seen on command line (?)
    - dispatch() function to call, in order, the list of commands (?)
- Usage information in spec and printed by a separate function
    - optional name for params usage("msg", "FILE") --> --input=FILE
    - usage("msg", "LABEL", "VALUE") --> --keypair LABEL=VALUE
- For keypair validation, pass *both* key and value to a validation 
  subroutine (allowing custom validation by key)
- Callbacks (?)
- option to allow unrecognized dash-prefixed options without exception
- "cuddle" parameters -- e.g. "-Ilib" is "-I lib"

#--------------------------------------------------------------------------#
# Bugfixes/technical/other
#--------------------------------------------------------------------------#

- test how negation is handled under $STRICT
- write cookbook
- refactor ugly code (module and tests)
- Allow keypairs to escape an equals sign for use in keys(?) -- e.g.
  "define is\==value" giving "is=" => "value" (Does anyone really need
  this?)