Eyal Rozenberg
589d55837e
Fixes #1 : Support for multiple long names per option
...
An unintrusive implementation - no existing interfaces changed, and a single addition for obtaining all of the different long names.
Notes:
* Tests added for the new functionality, and existing tests expanded to take it into account.
* It is now impossible to specify long names with commas in them (but then, that wasn't properly supported before either, more of an oversight).
* The multiple long options are not included in the usage information - just the first one of them is printed
2018-06-27 22:25:43 +03:00
Vladimir Prus
0756d35f8b
Remove more unnecessary use of boost::type_index.
2015-05-01 19:15:36 +03:00
Minmin Gong
6feeeb3b92
Using type_index to avoid RTTIs in program_options. ( fixes #10347 )
2015-04-30 22:10:44 +03:00
Vladimir Prus
5cbfa80841
Allow to specify how option's value is named in help message.
...
Fixes #4781 .
[SVN r77931]
2012-04-12 08:37:34 +00:00
Vladimir Prus
53ba9ab34f
Robustify disambiguation of full/approximate matches.
...
Fixes #3942 .
[SVN r59744]
2010-02-18 09:43:07 +00:00
Sascha Ochsenknecht
60966caa35
Additional parameter to allow user to specify width of column for description text, patch from Chard, Fixes #3703
...
[SVN r58095]
2009-12-02 13:35:54 +00:00
Sascha Ochsenknecht
6b194eed21
additional patch for Ticket #1527
...
[SVN r58054]
2009-11-30 13:38:14 +00:00
Sascha Ochsenknecht
249094d496
added test case, Fixes #2994
...
[SVN r57817]
2009-11-20 14:18:36 +00:00
Vladimir Prus
c6b373ff48
Fix wordwrapping in presense of default parameters.
...
Fixes #2613 .
Patch from Sascha Ochsenknecht.
[SVN r57517]
2009-11-09 16:12:31 +00:00
Vladimir Prus
5a5ad8df61
Test for \t-alignment of options descriptions.
...
Fixes #1527 .
Patch from Sascha Ochsenknecht.
[SVN r57515]
2009-11-09 15:57:51 +00:00
Vladimir Prus
122fe22e07
Put description to next line if we'd overflow otherwise.
...
Fixes #689 .
Patch from Sascha Ochsenknecht.
[SVN r57271]
2009-11-01 10:44:49 +00:00
Vladimir Prus
86aeaf478d
Don't use boost.test for testing.
...
[SVN r40463]
2007-10-25 17:08:27 +00:00
Vladimir Prus
cd647f785a
Fix #898 . Two approximate matches followed by an exact match
...
no longer cause an ambiguity to be reported.
[SVN r38187]
2007-07-11 19:07:44 +00:00
Vladimir Prus
026c527d8d
Workaround "interator incremented past the end" assertion in MSVC-8.0.
...
[SVN r33776]
2006-04-24 08:00:13 +00:00
Vladimir Prus
5e4b39d672
Fix SF bug 1395874. When both "all" and "all-chroots" options were registered
...
and "--all" was specified on command line and approximation was on,
ambiguity was reported. Now, "all" is recognized.
[SVN r32263]
2006-01-09 09:06:24 +00:00
Vladimir Prus
e1d38380f4
Allow to query the type of options:
...
- add new class typed_value_base, with "value_type" method
- derived typed_value from typed_value_base
Idea from Giuseppe Vacanti.
[SVN r31752]
2005-11-23 09:14:02 +00:00
Vladimir Prus
c984d59de1
Refactor the command line parser so that it uses options_description,
...
as opposed to having his own data structures. Clean up option description
classes a bit, removing unneeded methods. Remove support for 'implicit'
options.
[SVN r28413]
2005-04-22 13:35:45 +00:00
Stefan Slapeta
fc423bf6bc
Replaced BOOST_TEST*
...
[SVN r27052]
2005-02-03 12:45:59 +00:00
Vladimir Prus
196f6c0b5b
Import revision 295 of the program_options library.
...
[SVN r22823]
2004-05-14 13:40:31 +00:00