diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2005-10-25 11:25:59 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2005-10-25 11:25:59 +0000 |
commit | 5876043501ea104705a5b8170f5a56ef58f34795 (patch) | |
tree | f840ba6cccc30f8ea2fff26c270dedba2f29d9d9 /unodevtools | |
parent | 9f626a1d88a45db91c73aad22c8dd8900a16d9bb (diff) |
#i52208# change command help
Diffstat (limited to 'unodevtools')
-rw-r--r-- | unodevtools/source/unodevtools/options.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/unodevtools/source/unodevtools/options.cxx b/unodevtools/source/unodevtools/options.cxx index 9a7acb5412ed..5836978849ff 100644 --- a/unodevtools/source/unodevtools/options.cxx +++ b/unodevtools/source/unodevtools/options.cxx @@ -4,9 +4,9 @@ * * $RCSfile: options.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: jsc $ $Date: 2005-09-09 13:50:38 $ + * last change: $Author: jsc $ $Date: 2005-10-25 12:25:59 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -122,9 +122,11 @@ sal_Bool readOption( sal_Bool * pbOpt, const sal_Char * pOpt, sal_Int32 * pnIndex, const OUString & aArg) { const OUString dashdash(RTL_CONSTASCII_USTRINGPARAM("--")); + const OUString dash(RTL_CONSTASCII_USTRINGPARAM("-")); OUString aOpt = OUString::createFromAscii(pOpt); - if(aArg.indexOf(dashdash) == 0 && aOpt.equalsIgnoreAsciiCase(aArg.copy(2))) + if((aArg.indexOf(dash) == 0 && aOpt.equalsIgnoreAsciiCase(aArg.copy(1))) || + (aArg.indexOf(dashdash) == 0 && aOpt.equalsIgnoreAsciiCase(aArg.copy(2))) ) { ++(*pnIndex); *pbOpt = sal_True; |