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