diff options
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/llcommandlineparser.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/linden/indra/newview/llcommandlineparser.cpp b/linden/indra/newview/llcommandlineparser.cpp index c74406b..36b0e71 100644 --- a/linden/indra/newview/llcommandlineparser.cpp +++ b/linden/indra/newview/llcommandlineparser.cpp | |||
@@ -59,7 +59,7 @@ | |||
59 | 59 | ||
60 | namespace po = boost::program_options; | 60 | namespace po = boost::program_options; |
61 | 61 | ||
62 | // *NTOE:MEP - Currently the boost object reside in file scope. | 62 | // *NOTE:MEP - Currently the boost object reside in file scope. |
63 | // This has a couple of negatives, they are always around and | 63 | // This has a couple of negatives, they are always around and |
64 | // there can be only one instance of each. | 64 | // there can be only one instance of each. |
65 | // The plus is that the boost-ly-ness of this implementation is | 65 | // The plus is that the boost-ly-ness of this implementation is |
@@ -162,6 +162,12 @@ public: | |||
162 | return mIsComposing; | 162 | return mIsComposing; |
163 | } | 163 | } |
164 | 164 | ||
165 | // Needed for boost 1.42 | ||
166 | virtual bool is_required() const | ||
167 | { | ||
168 | return false; // All our command line options are optional. | ||
169 | } | ||
170 | |||
165 | virtual bool apply_default(boost::any& value_store) const | 171 | virtual bool apply_default(boost::any& value_store) const |
166 | { | 172 | { |
167 | return false; // No defaults. | 173 | return false; // No defaults. |
@@ -268,7 +274,11 @@ bool LLCommandLineParser::parseAndStoreResults(po::command_line_parser& clp) | |||
268 | { | 274 | { |
269 | clp.options(gOptionsDesc); | 275 | clp.options(gOptionsDesc); |
270 | clp.positional(gPositionalOptions); | 276 | clp.positional(gPositionalOptions); |
271 | clp.style(po::command_line_style::default_style | 277 | // SNOW-626: Boost 1.42 erroneously added allow_guessing to the default style |
278 | // (see http://groups.google.com/group/boost-list/browse_thread/thread/545d7bf98ff9bb16?fwc=2&pli=1) | ||
279 | // Remove allow_guessing from the default style, because that is not allowed | ||
280 | // when we have options that are a prefix of other options (aka, --help and --helperuri). | ||
281 | clp.style((po::command_line_style::default_style & ~po::command_line_style::allow_guessing) | ||
272 | | po::command_line_style::allow_long_disguise); | 282 | | po::command_line_style::allow_long_disguise); |
273 | if(mExtraParser) | 283 | if(mExtraParser) |
274 | { | 284 | { |