summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorGregor Hartmann <gh@openoffice.org>2001-07-06 12:52:07 +0000
committerGregor Hartmann <gh@openoffice.org>2001-07-06 12:52:07 +0000
commit5e1bc6fea17a33d25dece99b50f9ecd2ce272f8f (patch)
treefb8be87b90a20d0d21460d45c8d2e72c6a674fc6 /basic
parentadebf72009e2c48bdfffb06cc1f5ae1d08d4bc1a (diff)
#88480#accept - and / for switches on non-UNIX systems
Diffstat (limited to 'basic')
-rw-r--r--basic/source/app/app.cxx16
1 files changed, 12 insertions, 4 deletions
diff --git a/basic/source/app/app.cxx b/basic/source/app/app.cxx
index cf807e7b4097..5a7a46192f2d 100644
--- a/basic/source/app/app.cxx
+++ b/basic/source/app/app.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: app.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: gh $ $Date: 2001-04-04 13:18:57 $
+ * last change: $Author: gh $ $Date: 2001-07-06 13:52:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -380,14 +380,22 @@ IMPL_LINK( BasicApp, LateInit, void *, pDummy )
BOOL bFileLoaded = FALSE;
for ( int i = 0 ; i < Application::GetCommandLineParamCount() ; i++ )
{
- if ( Application::GetCommandLineParam( i ).Copy(0,1).CompareToAscii("-") != COMPARE_EQUAL )
+ if ( Application::GetCommandLineParam( i ).Copy(0,1).CompareToAscii("-") != COMPARE_EQUAL
+#ifndef UNX
+ && Application::GetCommandLineParam( i ).Copy(0,1).CompareToAscii("/") != COMPARE_EQUAL
+#endif
+ )
{
pFrame->LoadFile( Application::GetCommandLineParam( i ) );
bFileLoaded = TRUE;
}
else
{
- if ( Application::GetCommandLineParam( i ).Copy(0,4).CompareIgnoreCaseToAscii("-run") == COMPARE_EQUAL )
+ if ( Application::GetCommandLineParam( i ).Copy(0,4).CompareIgnoreCaseToAscii("-run") == COMPARE_EQUAL
+#ifndef UNX
+ || Application::GetCommandLineParam( i ).Copy(0,4).CompareIgnoreCaseToAscii("/run") == COMPARE_EQUAL
+#endif
+ )
pFrame->SetAutoRun( TRUE );
}
}