File: TODO

package info (click to toggle)
gengetopt 2.22.6+dfsg0-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 5,732 kB
  • sloc: cpp: 14,709; sh: 11,845; ansic: 8,030; makefile: 689; yacc: 514; lex: 171; sed: 3
file content (77 lines) | stat: -rw-r--r-- 2,653 bytes parent folder | download | duplicates (3)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
This file is licensed to you under the license specified in the included file
`COPYING'. Look there for further details.


GENERAL TASKS:

* Generate C++ code

* Generate Java code

The current maintainer is taking patches. See the file `AUTHORS'.

Implement synonyms

Should - be always interpreted as the standard output

Generate code that uses Argp

Duplicate options: A @dfn{duplicate option} is an option that, like a
multiple option, may be specified more than once, but for which only
the last use is significant.   The classic example is the @option{-O}
switch present in most C compilers:

maintainer-mode

CLEANING

- code duplication in check_option and create_option in gengetopt.cc

TESTS

generate in the code also a test main with a string containing the test
arguments and then in the main, check that the results are as expected.

avoid to touch sample1.ggo and sample2.ggo for make check in doc.

check whether --show-help correctly handles escaped newlines

check also detailed and full help for \\n and text

TEXT BUG:

section         "Section 1" 
option          "str-opt"   s "A string option, for a filename"
	optional 
	string typestr="filename"
text            "      explain more about the string option"
section         "Section 2" 
option          "int-opt"   i "A int option"  int optional 

In this case text will be printed after Section 2 and before int-opt
since the text is set in the option during gengetopt_check_option, while
it should be set during the parsing:
when text is encountered if there's already an option parsed
we should set its text_after.
But we should be careful not to set the same text after an option and
before another one: after setting a text_after we should set current text to 0.
And what if the text is after a section?
If we had set the current text to 0 there should be no problems.

Probably it's better to have "option parts" and distinguishing
between standard options, sections, text, modes, etc.
This requires some refactoring!
But would this work for sections with only hidden options? No I guess.

Possible fix found by setting the text in the parser
- apply the current_option solution to other options (mode and group)
- deal with text coming after a section (check current_section), but this would not
  work in case there more text occurrences?  It should, test it.
  and reset to 0 parsed_a_section after having parsed an option.
- but do this also for modes and groups?

Probably we should avoid to check whether the option after a section is hidden:
does a section with only hidden options make sense?
Yes probably it's better to keep this feature.

We do not need libtool