Commit Graph

122 Commits

Author SHA1 Message Date
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
Troy D. Straszheim
3f6577a53b rm cmake from trunk. I'm not entirely sure this is necessary to satisfy the inspect script, but I'm not taking any chances, and it is easy to put back
[SVN r56942]
2009-10-17 02:07:38 +00:00
Troy D. Straszheim
b5ce55ad8c Copyrights on CMakeLists.txt to keep them from clogging up the inspect
reports.  This is essentially the same commit as r55095 on the release
branch.



[SVN r55159]
2009-07-26 00:49:56 +00:00
Vladimir Prus
ba75831f1b Properly convert original_tokens and unregistered to woption.
Fixes #2425.


[SVN r53441]
2009-05-30 10:34:37 +00:00
Troy D. Straszheim
98331c3542 Merge cmake files release -> trunk.
[SVN r52866]
2009-05-09 22:57:30 +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
Michael A. Jackson
ea2b309994 Updating CMake files to latest trunk. Added dependency information for regression tests and a few new macros for internal use.
[SVN r49627]
2008-11-07 17:02:56 +00:00
Michael A. Jackson
23019ff2ef Continuing merge of CMake build system files into trunk with the encouragement of Doug Gregor
[SVN r49510]
2008-11-01 13:15:41 +00:00
Vladimir Prus
80361c6b8f Fix winmain test
[SVN r40487]
2007-10-26 19:37:56 +00:00
Vladimir Prus
86aeaf478d Don't use boost.test for testing.
[SVN r40463]
2007-10-25 17:08:27 +00:00
Vladimir Prus
73cf706164 Remove V1 Jamfiles
[SVN r38516]
2007-08-08 19:02:26 +00:00
Vladimir Prus
e51a3ae742 Support for 'implicit' options.
Patch from Bryan Green.
Fixes #1131.


[SVN r38514]
2007-08-08 18:40:48 +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
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
d1d5636365 Compilation fix for sun. Fixes #739.
[SVN r38109]
2007-06-28 07:09:38 +00:00
Vladimir Prus
8c68a478c9 Fix dynamic linking
[SVN r35991]
2006-11-10 20:29:40 +00:00
Vladimir Prus
5d1345c5a9 Allow building of shared versions of some Boost.Test libraries.
Adjust tests to use always use static linking to Boost.Test, since
linking to the shared version requires test changes.

Patch from Juergen Hunold.


[SVN r35989]
2006-11-10 19:09:56 +00:00
Vladimir Prus
de66d37405 Make positional_options_description::add return reference to *this.
[SVN r33989]
2006-05-18 05:59:56 +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
026c527d8d Workaround "interator incremented past the end" assertion in MSVC-8.0.
[SVN r33776]
2006-04-24 08:00:13 +00:00
Dave Abrahams
8f0bc7ad72 Stop using assert() in tests
[SVN r33181]
2006-02-28 22:56:33 +00:00
Vladimir Prus
48ee128928 Set BOOST_ALL_NO_LIB for _dll tests
[SVN r32884]
2006-02-13 09:04:49 +00:00
Vladimir Prus
cbe799d914 Ignore unregisted options in 'store'.
[SVN r32264]
2006-01-09 09:44:44 +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
78f209eb0b Add test for unregisted options on the command_line_parser level.
[SVN r31614]
2005-11-10 08:15:44 +00:00
Douglas Gregor
e6e1ef29db Fixup uses of max
[SVN r30059]
2005-07-13 16:32:41 +00:00
Vladimir Prus
f88e0a9572 Attempt to fix VC7 parse error.
[SVN r29400]
2005-06-03 10:38:24 +00:00
Vladimir Prus
1fec99d686 Fix library target naming.
Patch from Jurgen Hunold.


[SVN r29246]
2005-05-27 15:15:05 +00:00
Vladimir Prus
274cd2e682 Fix ambiguity between 'std::detail' and 'program_options::detail' on cw.
[SVN r28692]
2005-05-06 08:13:32 +00:00
Vladimir Prus
b5bc8b4fcb Add test for unregisted options.
[SVN r28691]
2005-05-06 08:12:27 +00:00
Vladimir Prus
9a149beb76 Fix 'unknown option' error for two successive calls to 'store'.
The bug triggered if
- we store two parsed_option object into variables_map
- the options descriptions associated with those parsed_option objects
  are different
- an option present in first parser_option object is not declared in
  second options_description.

The problem was that on the second 'store' call we went over all
stored options, trying to get their description from the *second*
options description object.

Thanks to Hartmut Kaiser for the bug report.


[SVN r28685]
2005-05-06 06:40:39 +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
efc9712f70 Check for invalid options in vector<option> returned by extra style
parser or additional parser.


[SVN r28468]
2005-04-25 09:06:44 +00:00
Vladimir Prus
94d186836e Derive basic_command_line_parser from cmdline.
Eliminate 'common_command_line_parser'.


[SVN r28419]
2005-04-22 15:32:23 +00:00
Vladimir Prus
6565cbc334 Revive 'additional parser'.
[SVN r28415]
2005-04-22 14:05:17 +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
Vladimir Prus
e5a143e2c5 Update BOOST_CHECK_EQUAL_COLLECTIONS usage to the current version of
Boost.Test.


[SVN r27417]
2005-02-18 11:11:11 +00:00
Stefan Slapeta
fc423bf6bc Replaced BOOST_TEST*
[SVN r27052]
2005-02-03 12:45:59 +00:00
Vladimir Prus
c3e02a2b0a Merge the utf8 workaround in program_options and serialization and
put the result to boost/detail and libs/detail.


[SVN r26758]
2005-01-20 08:49:13 +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
44d5ba98c1 Improve 'bool_switch' -- don't accept any argument on the command line.
Allow to set 'zero_tokens' flag for the typed_value type.


[SVN r25105]
2004-09-15 09:49:00 +00:00
Vladimir Prus
f7b4a11316 Another 'mingw-has-no-wstring' workaround
[SVN r24776]
2004-08-27 07:07:15 +00:00
Vladimir Prus
f86cc57222 Don't require std::facet-support in tests. Supposedly, it causes link failures.
[SVN r24742]
2004-08-26 10:38:04 +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
b4192e34b9 Another set of doc/comment edits from Charles.
[SVN r24657]
2004-08-23 10:18:09 +00:00
Stefan Slapeta
b4f699c0de Fix for CW 9 (namespace ambiguity)
[SVN r24267]
2004-08-03 13:45:15 +00:00
Vladimir Prus
2be9ab8757 Replace \u espaces with \x escapes, since CW8 does not understand the
former. Thanks to Rene Rivera for the patch.


[SVN r24066]
2004-07-26 06:54:35 +00:00
Vladimir Prus
fa2257def0 Really fix CW9 problem.
[SVN r23948]
2004-07-22 09:47:48 +00:00
Vladimir Prus
3173707873 Workaround CW9 problem.
[SVN r23943]
2004-07-22 08:18:59 +00:00
Vladimir Prus
2b750c044d Add a code size testing script.
[SVN r23769]
2004-07-19 07:17:14 +00:00
Vladimir Prus
29c37f478f Added the Python script I used to generated winmain.cpp, just in
case I'd need to add some new testcase.


[SVN r23768]
2004-07-19 07:16:00 +00:00
Vladimir Prus
fdbd1493b9 Simplify the test.
[SVN r23759]
2004-07-19 06:50:22 +00:00
Vladimir Prus
9133a2e903 Added 'split_winmain' function.
[SVN r23550]
2004-07-14 15:57:02 +00:00
Vladimir Prus
14601a2c4c Apply fixed from John Maddock:
- don't require std::facet-support and std::locale-support for DLL lib
    and DLL tests, since it turns on static runtime, which is not usable
    with DLLs
  - set BOOST_ALL_DYN_LINK when linking DLL tests.


[SVN r23540]
2004-07-14 11:31:31 +00:00
Vladimir Prus
33721085c6 Add DLL flavour for all tests. Not sure if this will be permanent change,
but really have to make sure I've used dllexport in all necessary places,
and don't have access to vc at the moment.


[SVN r23230]
2004-06-28 09:31:28 +00:00
Vladimir Prus
9d1a3565d0 VC6/VC7 workaround
[SVN r23199]
2004-06-26 11:33:02 +00:00
Vladimir Prus
a031382c91 Try to workaround vc7 failure by adding & when taking function address.
[SVN r23180]
2004-06-25 12:21:21 +00:00
Vladimir Prus
df45b22508 More vc6 workarounds.
[SVN r23101]
2004-06-15 09:15:32 +00:00
Vladimir Prus
268a9c748f Add test-suite declaration
[SVN r23088]
2004-06-11 11:43:14 +00:00
Vladimir Prus
b6f9e1f367 Workaround for vc6/vc7.
[SVN r23081]
2004-06-11 06:11:34 +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
0219187044 Turns out intel just don't have templated vector constructor in some
configurations. Introduce auxilliary function to conveniently create vectors
from arrays.


[SVN r22952]
2004-05-27 14:36:53 +00:00
Vladimir Prus
cf02adf126 Fix a typo in the previous commit.
[SVN r22951]
2004-05-27 14:17:53 +00:00
Vladimir Prus
f1e659daf3 Intel 7.1 does not like passing char*[] and char** as two arguments to
vector<string> constructor. Try to workaround this.


[SVN r22950]
2004-05-27 14:13:24 +00:00
Vladimir Prus
a65917d23e Use 'putenv' instead of less portable 'setenv'.
[SVN r22916]
2004-05-25 07:20:41 +00:00
Vladimir Prus
d1b80f89b3 Try to enable locale/facet support for metrowerks.
[SVN r22855]
2004-05-18 06:38:17 +00:00
Vladimir Prus
3676504589 Use _putenv, not setenv, on Win32.
[SVN r22853]
2004-05-18 06:26:08 +00:00
Vladimir Prus
505a1e11b2 Make test Jamfile work with regression tests.
[SVN r22824]
2004-05-14 14:57:46 +00:00
Vladimir Prus
196f6c0b5b Import revision 295 of the program_options library.
[SVN r22823]
2004-05-14 13:40:31 +00:00