Commit Graph

26 Commits

Author SHA1 Message Date
Vladimir Prus
5af27a78e7 Use boost::throw_exception instead just throw_exception. Otherwise, borland
"forgets" to generate code for the function call.


[SVN r29614]
2005-06-16 10:29:49 +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
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
58d35a27b9 Change "throw" to "throw_exception".
[SVN r27398]
2005-02-16 09:03:19 +00:00
Vladimir Prus
87b4fff3e2 Fix missing includes.
Patch from Graham Bennett.


[SVN r26677]
2005-01-12 10:50:32 +00:00
Vladimir Prus
89a7168a42 Typo
[SVN r25106]
2004-09-15 09:56:53 +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
0cc6946235 Define environ on Comeau.
[SVN r23670]
2004-07-17 07:01:06 +00:00
Vladimir Prus
6dcf98d974 Don't declare environ on WIN32 -- it's already defined in headers and second
definition cause warning about different dll linkage.


[SVN r23541]
2004-07-14 11:42:23 +00:00
Vladimir Prus
f084eeac4b Applied numerious suggestions from Pavel Vozenilek.
[SVN r23496]
2004-07-13 15:12:26 +00:00
Vladimir Prus
ee778af57c More declspecs
[SVN r23315]
2004-07-02 08:38:52 +00:00
Vladimir Prus
82ecb460b3 Add missing DLL exports for Windows.
[SVN r23249]
2004-06-29 07:36:09 +00:00
Vladimir Prus
75a6e42360 Patch from Janusz Piwowarski, to make the library work on mingw, despite
the fact the mingw does not have std::wstring. The patch disables wchar_t
support, but it allows the rest of the library to work ok.


[SVN r23111]
2004-06-17 12:34:59 +00:00
Vladimir Prus
c4f84e5111 Add extra qualification to help vc7 find the right function.
[SVN r23069]
2004-06-10 08:46:24 +00:00
Vladimir Prus
b441ebab91 Restructure the implementation to avoid the need to specialize member
templates, which does not work on some compilers.

* new 'to_internal' function which takes a vector.
* new 'common_command_line_parser' class.


[SVN r23054]
2004-06-08 08:14:09 +00:00
Vladimir Prus
7d546f5e5e Don't declare environ on borland, since it chokes on declaration. Remove
some unused env-handling code.


[SVN r23053]
2004-06-08 07:10:05 +00:00
Vladimir Prus
e5ddfade07 Another way to get environment on Metrowerks.
[SVN r23015]
2004-06-03 06:57:31 +00:00
Vladimir Prus
3c8fa25d29 Another environment fix for Darwin. Apparently, initialization of 'envrion'
as global variable does not work right. Make 'environ' a macro, calling the
right function. Thanks to Michael LaSpina.


[SVN r23013]
2004-06-03 06:39:43 +00:00
Vladimir Prus
c71c907bcc Disable parse_config_file specialization for wchar_t if we don't have wstring.
[SVN r22925]
2004-05-26 06:25:56 +00:00
Vladimir Prus
632b835117 Add missing template<>.
[SVN r22921]
2004-05-26 05:55:36 +00:00
Vladimir Prus
18a648ef27 Don't erroneously set 'allow_unregisted' flag.
[SVN r22910]
2004-05-24 13:47:03 +00:00
Vladimir Prus
738a54fd21 Metrowerks does not seem to provide '_environ', use 'envrion' in that case.
[SVN r22906]
2004-05-24 05:23:51 +00:00
Vladimir Prus
cfb199f976 Replace string::push_back with string::operator+=.
[SVN r22905]
2004-05-24 05:02:17 +00:00
Vladimir Prus
e1fa6f7a1d Added missing "template<>".
[SVN r22904]
2004-05-24 05:00:49 +00:00
Vladimir Prus
de43626b2c Declare the 'environ' variable, since it's not always declared in headers,
even on Posix systems.


[SVN r22856]
2004-05-18 07:03:43 +00:00
Vladimir Prus
196f6c0b5b Import revision 295 of the program_options library.
[SVN r22823]
2004-05-14 13:40:31 +00:00