]>
Commit | Line | Data |
---|---|---|
dbfe3c19 DK |
1 | 2008-06-16 Dave Korn <dave.korn.cygwin@gmail.com> |
2 | ||
3 | * libgetopt++/src/OptionSet.cc (OptionSet::doOption): Move value | |
4 | string to outer scope so it is not destroyed while optionValue | |
5 | still has a dangling reference to its c_str(). | |
6 | ||
2e0aaec9 BD |
7 | 2008-04-08 Brian Dessent <brian@dessent.net> |
8 | ||
9 | * src/OptionSet.cc: Include algorithm. | |
10 | ||
aa62e0f3 BD |
11 | 2005-09-01 Brian Dessent <brian@dessent.net> |
12 | ||
13 | * Makefile.am (AM_CXXFLAGS): Add -Wno-uninitialized to work around | |
14 | spurious warnings with gcc 3.4.4. | |
15 | ||
2f142eb9 | 16 | 2005-05-05 Max Bowsher <maxb@ukf.net> |
72a99873 MB |
17 | |
18 | * Makefile.am (EXTRA_DIST): Add bootstrap.sh. | |
19 | ||
1d644c06 RC |
20 | 2003-12-10 20:45:32 GMT Robert Collins <rbtcollins@hotmail.com> patch-17 |
21 | ||
22 | Summary: | |
23 | bump library version | |
24 | Revision: | |
25 | libgetoptplusplus--own-getopt--1.0--patch-17 | |
26 | ||
27 | ||
28 | modified files: | |
29 | Makefile.am src/OptionSet.cc | |
30 | ||
31 | ||
32 | 2003-12-10 13:14:39 GMT Robert Collins <rbtcollins@hotmail.com> patch-16 | |
33 | ||
34 | Summary: | |
35 | extract argumentless parsing logic | |
36 | Revision: | |
37 | libgetoptplusplus--own-getopt--1.0--patch-16 | |
38 | ||
39 | ||
40 | modified files: | |
41 | include/getopt++/OptionSet.h src/OptionSet.cc | |
42 | ||
43 | ||
44 | 2003-12-10 12:25:55 GMT Robert Collins <rbtcollins@hotmail.com> patch-15 | |
45 | ||
46 | Summary: | |
47 | simplify logic by consolidating Process calls in OptionSet::doOption | |
48 | Revision: | |
49 | libgetoptplusplus--own-getopt--1.0--patch-15 | |
50 | ||
51 | ||
52 | modified files: | |
53 | src/OptionSet.cc | |
54 | ||
55 | ||
56 | 2003-12-10 12:24:22 GMT Robert Collins <rbtcollins@hotmail.com> patch-14 | |
57 | ||
58 | Summary: | |
59 | move option value passing out of the direct path of option processing | |
60 | Revision: | |
61 | libgetoptplusplus--own-getopt--1.0--patch-14 | |
62 | ||
63 | ||
64 | modified files: | |
65 | src/OptionSet.cc | |
66 | ||
67 | ||
68 | 2003-12-10 12:21:32 GMT Robert Collins <rbtcollins@hotmail.com> patch-13 | |
69 | ||
70 | Summary: | |
71 | return actual Option results | |
72 | Revision: | |
73 | libgetoptplusplus--own-getopt--1.0--patch-13 | |
74 | ||
75 | ||
76 | modified files: | |
77 | src/OptionSet.cc | |
78 | ||
79 | ||
80 | 2003-12-10 12:19:39 GMT Robert Collins <rbtcollins@hotmail.com> patch-12 | |
81 | ||
82 | Summary: | |
83 | extract OptionSet::findOption | |
84 | Revision: | |
85 | libgetoptplusplus--own-getopt--1.0--patch-12 | |
86 | ||
87 | ||
88 | modified files: | |
89 | include/getopt++/OptionSet.h src/OptionSet.cc | |
90 | ||
91 | ||
92 | 2003-12-10 12:14:36 GMT Robert Collins <rbtcollins@hotmail.com> patch-11 | |
93 | ||
94 | Summary: | |
95 | make OptionSet::processOne() return void | |
96 | Revision: | |
97 | libgetoptplusplus--own-getopt--1.0--patch-11 | |
98 | ||
99 | ||
100 | modified files: | |
101 | include/getopt++/OptionSet.h src/OptionSet.cc | |
102 | ||
103 | ||
104 | 2003-12-10 12:10:42 GMT Robert Collins <rbtcollins@hotmail.com> patch-10 | |
105 | ||
106 | Summary: | |
107 | extract method OptionSet::doOption | |
108 | Revision: | |
109 | libgetoptplusplus--own-getopt--1.0--patch-10 | |
110 | ||
111 | ||
112 | modified files: | |
113 | include/getopt++/OptionSet.h src/OptionSet.cc | |
114 | ||
115 | ||
116 | 2003-12-10 11:57:05 GMT Robert Collins <rbtcollins@hotmail.com> patch-9 | |
117 | ||
118 | Summary: | |
119 | extract method OptionSet::isOption | |
120 | Revision: | |
121 | libgetoptplusplus--own-getopt--1.0--patch-9 | |
122 | ||
123 | ||
124 | modified files: | |
125 | include/getopt++/OptionSet.h src/OptionSet.cc | |
126 | ||
127 | ||
128 | 2003-12-10 11:48:31 GMT Robert Collins <rbtcollins@hotmail.com> patch-8 | |
129 | ||
130 | Summary: | |
131 | eliminate passed in self reference to OptionSet::processOne | |
132 | Revision: | |
133 | libgetoptplusplus--own-getopt--1.0--patch-8 | |
134 | ||
135 | ||
136 | modified files: | |
137 | include/getopt++/OptionSet.h src/OptionSet.cc | |
138 | ||
139 | ||
140 | 2003-12-10 11:36:01 GMT Robert Collins <rbtcollins@hotmail.com> patch-7 | |
141 | ||
142 | Summary: | |
143 | remove OptionState class | |
144 | Revision: | |
145 | libgetoptplusplus--own-getopt--1.0--patch-7 | |
146 | ||
147 | ||
148 | modified files: | |
149 | include/getopt++/OptionSet.h src/OptionSet.cc | |
150 | ||
151 | ||
152 | 2003-12-10 11:32:33 GMT Robert Collins <rbtcollins@hotmail.com> patch-6 | |
153 | ||
154 | Summary: | |
155 | remove OptionStateFinder class | |
156 | Revision: | |
157 | libgetoptplusplus--own-getopt--1.0--patch-6 | |
158 | ||
159 | ||
160 | modified files: | |
161 | src/OptionSet.cc | |
162 | ||
163 | ||
164 | 2003-12-10 06:52:51 GMT Robert Collins <rbtcollins@hotmail.com> patch-5 | |
165 | ||
166 | Summary: | |
167 | use up option values that are in the next argv slot | |
168 | Revision: | |
169 | libgetoptplusplus--own-getopt--1.0--patch-5 | |
170 | ||
171 | ||
172 | modified files: | |
173 | src/OptionSet.cc | |
174 | ||
175 | ||
176 | 2003-12-10 06:47:33 GMT Robert Collins <rbtcollins@hotmail.com> patch-4 | |
177 | ||
178 | Summary: | |
179 | support step by step parsing - using non options to switch 'mode' | |
180 | Revision: | |
181 | libgetoptplusplus--own-getopt--1.0--patch-4 | |
182 | ||
183 | ||
184 | modified files: | |
185 | include/getopt++/OptionSet.h src/OptionSet.cc | |
186 | tests/OptionSet.cc | |
187 | ||
188 | ||
189 | 2003-12-10 04:37:57 GMT Robert Collins <rbtcollins@hotmail.com> patch-3 | |
190 | ||
191 | Summary: | |
192 | deprecate the DefaultOptionSet approach for chaining options | |
193 | Revision: | |
194 | libgetoptplusplus--own-getopt--1.0--patch-3 | |
195 | ||
196 | ||
197 | modified files: | |
198 | include/getopt++/BoolOption.h include/getopt++/Option.h | |
199 | include/getopt++/OptionSet.h include/getopt++/StringOption.h | |
200 | src/BoolOption.cc src/OptionSet.cc src/StringOption.cc | |
201 | tests/BoolOptionTest.cc tests/OptionSet.cc tests/testoption.cc | |
202 | ||
203 | ||
204 | 2003-12-10 04:01:28 GMT Robert Collins <rbtcollins@hotmail.com> patch-2 | |
205 | ||
206 | Summary: | |
207 | remove getopt logic | |
208 | Revision: | |
209 | libgetoptplusplus--own-getopt--1.0--patch-2 | |
210 | ||
211 | ||
212 | removed files: | |
213 | include/.arch-ids/cdefs.h.id include/.arch-ids/getopt.h.id | |
214 | include/cdefs.h include/getopt.h src/.arch-ids/getopt.c.id | |
215 | src/getopt.c | |
216 | ||
217 | modified files: | |
218 | Makefile.am configure.in include/getopt++/DefaultFormatter.h | |
219 | include/getopt++/OptionSet.h include/getopt++/StringOption.h | |
220 | src/BoolOption.cc src/StringOption.cc | |
221 | ||
222 | ||
223 | 2003-12-10 03:50:09 GMT Robert Collins <rbtcollins@hotmail.com> patch-1 | |
224 | ||
225 | Summary: | |
226 | add test case, and reimplement getopt from scratch | |
227 | Revision: | |
228 | libgetoptplusplus--own-getopt--1.0--patch-1 | |
229 | ||
230 | ||
231 | new files: | |
232 | tests/.arch-ids/OptionSet.cc.id tests/OptionSet.cc | |
233 | ||
234 | modified files: | |
235 | Makefile.am include/getopt++/BoolOption.h | |
236 | include/getopt++/DefaultFormatter.h include/getopt++/Option.h | |
237 | include/getopt++/OptionSet.h include/getopt++/StringOption.h | |
238 | src/BoolOption.cc src/OptionSet.cc src/StringOption.cc | |
239 | ||
240 | ||
241 | 2003-12-09 06:32:21 GMT Robert Collins <rbtcollins@hotmail.com> base-0 | |
242 | ||
243 | Summary: | |
244 | initial import | |
245 | Revision: | |
246 | libgetoptplusplus--own-getopt--1.0--base-0 | |
247 | ||
248 | ||
249 | (automatically generated log message) | |
250 | ||
251 | new files: | |
252 | COPYING ChangeLog Makefile.am README bootstrap.sh configure.in | |
253 | include/cdefs.h include/getopt++/BoolOption.h | |
254 | include/getopt++/DefaultFormatter.h | |
255 | include/getopt++/GetOption.h include/getopt++/Option.h | |
256 | include/getopt++/OptionSet.h include/getopt++/StringOption.h | |
257 | include/getopt.h src/BoolOption.cc src/GetOption.cc | |
258 | src/Option.cc src/OptionSet.cc src/StringOption.cc | |
259 | src/getopt.c tests/BoolOptionTest.cc tests/optioniterator.cc | |
260 | tests/testoption.cc | |
261 | ||
262 | ||
0b193029 RC |
263 | 2003-11-16 Robert Collins <rbtcollins@hotmail.com> |
264 | ||
265 | * src/OptionSet.cc (OptionSet::Process): Call the default optionset | |
266 | if one is supplied and no options are in the default. | |
267 | ||
20e315e1 RC |
268 | 2003-03-19 Robert Collins <rbtcollins@hotmail.com> |
269 | ||
270 | * configure.in: Bump version number. | |
271 | * Makefile.am: Add DefaultFormatter.h to installed files. | |
272 | * src/OptionSet.cc (OptionSet::ParameterUsage): Use new | |
273 | default DefaultFormatter to format parameters. | |
274 | * include/getopt++/OptionSet.h: Update copyright. | |
275 | * include/getopt++/DefaultFormatter.h: Format the help from an Option. | |
276 | * tests/testoption.cc: Include a -h|--help option to test help | |
277 | formatting. | |
278 | Insert copyright statement. | |
279 | * tests/optioniterator.cc: Insert copyright statement. | |
280 | ||
6f1abe45 RC |
281 | 2003-03-18 Robert Collins <rbtcollins@hotmail.com> |
282 | ||
283 | * include/getopt++/OptionSet.h (OptionSet): Convert to use a vector. | |
284 | * src/OptionSet.cc: Convert array to vector use throughout. | |
285 | (OptionSet::optionsInSet): Implement external access to the available | |
286 | options. | |
287 | ||
48c7d667 MB |
288 | 2003-03-10 Max Bowsher <maxb@ukf.net> |
289 | ||
290 | * Makefile.am: Add foreign to AUTOMAKE_OPTIONS. | |
291 | ||
7431a3a4 MB |
292 | 2003-03-09 Max Bowsher <maxb@ukf.net> |
293 | ||
294 | * bootstrap.sh: Add sanity check of current directory. | |
295 | ||
c70afa7a MB |
296 | 2002-11-29 Max Bowsher <maxb@ukf.net> |
297 | ||
298 | * .cvsignore: Create, for files generated by bootstrap.sh | |
299 | * include/.cvsignore: Ditto, for subdir. | |
300 | ||
ca362066 RC |
301 | 2002-11-10 Robert Collins <rbtcollins@hotmail.com> |
302 | ||
303 | * src/getopt.c: Only use our cdefs.h if the OS doesn't have one. | |
304 | * Makefile.am: Only compile our getopt.h if the OS doesn't provide | |
305 | getopt.h. | |
306 | * configure.in: Ditto. | |
307 | * tests/testoption.cc: Update for GCC-3. | |
308 | ||
e930272e RC |
309 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
310 | ||
311 | * include/getopt++/BoolOption.h: Add 'std::' where needed. | |
312 | * include/getopt++/Option.h: Ditto. | |
313 | * include/getopt++/OptionSet.h: Ditto. | |
314 | * include/getopt++/StringOption.h: Ditto. | |
315 | * src/BoolOption.cc: Add 'using namespace std;'. | |
316 | * src/OptionSet.cc: Ditto. | |
317 | * src/StringOption.cc: Ditto. | |
318 | ||
23cb3386 RC |
319 | 2002-11-04 Max Bowsher <maxb@ukf.net> |
320 | ||
321 | * Makefile.am (libgetopt++_la_LDADD): Remove -lstd++, it is only needed | |
322 | for broken g++ specs on some platforms. | |
323 | ||
e6d1fdfd RC |
324 | 2002-06-08 Robert Collins <rbtcollins@hotmail.com> |
325 | ||
326 | * Makefile.am: Correct Version requirement syntax. | |
327 | ||
290fdf73 RC |
328 | 2002-04-23 Robert Collins <rbtcollins@hotmail.com> |
329 | ||
330 | * include/cdefs.h: New file, support for getopt.h. | |
331 | * include/getopt.h: New file, for platforms without getopt.h. | |
332 | * src/getopt.c: New file, implementation of getopt. | |
333 | * COPYING: New file, GPL v2 text. | |
334 | * Makefile.am: Change AM_CXXFLAGS to INCLUDES. | |
335 | Add getopt.c to the library source. | |
336 | Add new headers to the source list. | |
337 | * configure.in: Remove unneeded macro calls. | |
338 | * include/getopt++/StringOption.h: Change String to string throughout. | |
339 | * src/StringOption.cc: Ditto. | |
340 | * include/getopt++/BoolOption.h: Ditto. | |
341 | * src/BoolOption.cc: Ditto. | |
342 | * src/OptionSet.cc: Ditto. | |
343 | * include/getopt++/Option.h: Ditto. | |
344 | Remove String++ includes, it's not needed anymore. | |
345 | * include/getopt++/OptionSet.h: Make the destructor virtual. | |
346 | ||
18b5620f RC |
347 | 2002-04-23 Robert Collins <rbtcollins@hotmail.com> |
348 | ||
349 | * src/OptionSet.cc (OptionSet::ParameterUsage): Line-break long | |
350 | help text. | |
351 | ||
1ae8e28d RC |
352 | 2002-04-20 Robert Collins <rbtcollins@hotmail.com> |
353 | ||
354 | * Makefile.am (libgetopt___la_SOURCES): Add OptionSet.cc and | |
355 | StringOption.cc for new functionality. | |
356 | (getoptinclude_HEADERS): Install the new headers. | |
357 | * include/getopt++/BoolOption.h (BoolOption::shortOption): Change | |
358 | to align with new Option header. | |
359 | * include/getopt++/Option.h (Option::shortOption): Change to allow | |
360 | short options with arguments. | |
361 | * include/getopt++/OptionSet.h: Implement ParameterUsage to show | |
362 | program options. | |
363 | Change Process to include a fallback OptionSet - for picking up | |
364 | non-option arguments. | |
365 | * include/getopt++/StringOption.h: New file. | |
366 | * src/BoolOption.cc (BoolOption::shortOption): Change as per the header. | |
367 | * src/OptionSet.cc (OptionSet::Process): Pass on umnparameterised | |
368 | arguments. | |
369 | (OptionSet::ParameterUsage): Implement. | |
370 | * src/StringOption.cc: New file. | |
371 | ||
7419f059 RC |
372 | 2002-04-14 Robert Collins <rbtcollins@hotmail.com> |
373 | ||
374 | * include/BoolOption.h: Move to | |
375 | * include/getopt++/BoolOption.h: here. | |
376 | * include/GetOption.h: Implement multiple-sets as per design. | |
377 | Move to ... | |
378 | * include/getopt++/GetOption.h: here. | |
379 | * include/Option.h: Move to | |
380 | * include/getopt++/Option.h: here. | |
381 | * include/getopt++/OptionSet.h: New file. | |
382 | * src/GetOption.cc: Move core functions to OptionSet.cc. | |
383 | Adjust for new header locations. | |
384 | * src/OptionSet.cc: New file. | |
385 | * src/BoolOption.cc: Adjust for new header locations. | |
386 | * src/Option.cc: Adjust for new header locations. | |
387 | * tests/testoption.cc: Adjust for new header locations. | |
388 | ||
389 | 2002-04-14 Robert Collins <rbtcollins@hotmail.com> | |
390 | ||
391 | * Makefile.am: New file. | |
392 | * README: New file. | |
393 | * bootstrap.sh: New file. | |
394 | * configure.in: New file. | |
395 | * include/BoolOption.h: New file. | |
396 | * include/GetOption.h: New file. | |
397 | * include/Option.h: New file. | |
398 | * src/BoolOption.cc: New file. | |
399 | * src/GetOption.cc: New file. | |
400 | * src/Option.cc: New file. | |
401 | * tests/testoption.cc: New file. |