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
Marshall Clow
56d2c97ece
patch tests for Sun; refs #3909
...
[SVN r67006]
2010-12-04 17:39:24 +00:00
Vladimir Prus
85b2b1c890
Make tests works regardless of what the current directory is.
...
[SVN r58606]
2009-12-31 08:34:07 +00:00
Sascha Ochsenknecht
645adb48cb
Allow passing file name to parse_config_file(), Fixes #3264
...
[SVN r58248]
2009-12-09 13:45:01 +00:00
Sascha Ochsenknecht
78693e8799
store empty values from config file, Fixes #1537
...
[SVN r57829]
2009-11-21 07:59:41 +00:00
Sascha Ochsenknecht
ccbbcab336
allow empty values in config file, Fixes #1537
...
[SVN r57819]
2009-11-20 16:53:10 +00:00
Vladimir Prus
e1010ad09e
Fix warnings.
...
Addresses #3603 .
Patch from Sascha Ochsenknecht.
[SVN r57535]
2009-11-10 06:59:54 +00:00
Vladimir Prus
e4ccf81e82
Sync trunk&release branches
...
[SVN r52441]
2009-04-17 10:01:38 +00:00
Vladimir Prus
600a8aa105
Merge from release:
...
When processing value multitoken options, don't eat futher options.
Fixes #469 .
[SVN r52210]
2009-04-06 09:36:21 +00:00
Vladimir Prus
86aeaf478d
Don't use boost.test for testing.
...
[SVN r40463]
2007-10-25 17:08:27 +00:00
Vladimir Prus
d0aa5abee5
Implement support for unregistered options in config files. Closes #687 .
...
[SVN r38191]
2007-07-11 19:39:06 +00:00
Vladimir Prus
d1d5636365
Compilation fix for sun. Fixes #739 .
...
[SVN r38109]
2007-06-28 07:09:38 +00:00
Vladimir Prus
3765e8e8e9
Fix accesses to first element of an empty string.
...
Thanks to Olaf van der Spek for the report.
[SVN r33778]
2006-04-24 08:25:12 +00:00
Vladimir Prus
cbe799d914
Ignore unregisted options in 'store'.
...
[SVN r32264]
2006-01-09 09:44:44 +00:00
Vladimir Prus
78f209eb0b
Add test for unregisted options on the command_line_parser level.
...
[SVN r31614]
2005-11-10 08:15:44 +00:00
Vladimir Prus
d4748e8153
Fix a regression -- the if the 'style' argument to parse_command_line
...
function was zero, it was interpreted as no style is suppored. Previously,
it was interpreted as default_styles. Also, remove 'style' argument from
'cmdline' constructors.
[SVN r28500]
2005-04-27 07:02:39 +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
05a5406e11
Move test of unicode command line from parsers_test.cpp to unicode_test,
...
to make test failures more informative. Otherwise, the failure of
'parsers_test' seem to indicate the library is unusable.
[SVN r25330]
2004-09-22 07:06:14 +00:00
Vladimir Prus
f7b4a11316
Another 'mingw-has-no-wstring' workaround
...
[SVN r24776]
2004-08-27 07:07:15 +00:00
Vladimir Prus
9a5b15eef1
Exclude Unicode part of parsers_test when system does not support
...
wstring.
[SVN r24658]
2004-08-23 10:24:39 +00:00
Vladimir Prus
df45b22508
More vc6 workarounds.
...
[SVN r23101]
2004-06-15 09:15:32 +00:00
Vladimir Prus
6735b65175
Some borland fixes.
...
[SVN r23068]
2004-06-10 08:35:36 +00:00
Vladimir Prus
f2d796c835
Another workaround for lack of templated vector ctor on Intel.
...
[SVN r22958]
2004-05-28 07:28:04 +00:00
Vladimir Prus
a65917d23e
Use 'putenv' instead of less portable 'setenv'.
...
[SVN r22916]
2004-05-25 07:20:41 +00:00
Vladimir Prus
3676504589
Use _putenv, not setenv, on Win32.
...
[SVN r22853]
2004-05-18 06:26:08 +00:00
Vladimir Prus
196f6c0b5b
Import revision 295 of the program_options library.
...
[SVN r22823]
2004-05-14 13:40:31 +00:00