summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-27 15:21:57 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-03-27 15:22:14 +0100
commit867588b4caf35d4954c7b26b7ac070a7a4675cd3 (patch)
treed24e73eb5fc2518d54270412c73d01577906bb89 /desktop
parent45a222a72b49bacddb962bfb34346558e45eff6b (diff)
Resolves: rhbz#807316 don't complain that nocrashreport is an unknown option
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/cmdlineargs.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/desktop/source/app/cmdlineargs.cxx b/desktop/source/app/cmdlineargs.cxx
index 0bc6312aff1a..037c716308e8 100644
--- a/desktop/source/app/cmdlineargs.cxx
+++ b/desktop/source/app/cmdlineargs.cxx
@@ -311,7 +311,9 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
// primitive tools that /bin/sh offers, ignore them here
if (!oArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("backtrace")) &&
!oArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("strace")) &&
- !oArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("valgrind")))
+ !oArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("valgrind")) &&
+ //ignore additional legacy options that don't do anything anymore
+ !oArg.equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("nocrashreport")))
{
fprintf(stderr, "Unknown option %s\n",
rtl::OUStringToOString(aArg, osl_getThreadTextEncoding()).getStr());