Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4efbd87e
Kaydet (Commit)
4efbd87e
authored
Mar 06, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: rhbz#800272 complain about unknown command-line options
üst
5ce699f0
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
1 deletion
+28
-1
cmdlineargs.cxx
desktop/source/app/cmdlineargs.cxx
+16
-1
cmdlineargs.hxx
desktop/source/app/cmdlineargs.hxx
+2
-0
officeipcthread.cxx
desktop/source/app/officeipcthread.cxx
+6
-0
sofficemain.cxx
desktop/source/app/sofficemain.cxx
+4
-0
No files found.
desktop/source/app/cmdlineargs.cxx
Dosyayı görüntüle @
4efbd87e
...
...
@@ -304,6 +304,15 @@ void CommandLineArgs::ParseCommandLine_Impl( Supplier& supplier )
{
bConversionOutEvent
=
true
;
}
#if defined UNX
else
{
printf
(
"Unknown option %s
\n
"
,
rtl
::
OUStringToOString
(
aArg
,
osl_getThreadTextEncoding
()).
getStr
());
printf
(
"Run 'soffice --help' to see a full list of available command line options.
\n
"
);
SetBoolParam_Impl
(
CMD_BOOLPARAM_UNKNOWN
,
sal_True
);
}
#endif
}
else
{
...
...
@@ -640,7 +649,7 @@ sal_Bool CommandLineArgs::InterpretCommandLineParameter( const ::rtl::OUString&
if
(
bDeprecated
)
{
rtl
::
OString
sArg
(
rtl
::
OUStringToOString
(
aArg
,
RTL_TEXTENCODING_UTF8
));
rtl
::
OString
sArg
(
rtl
::
OUStringToOString
(
aArg
,
osl_getThreadTextEncoding
()
));
fprintf
(
stderr
,
"Warning: %s is deprecated. Use -%s instead.
\n
"
,
sArg
.
getStr
(),
sArg
.
getStr
());
}
return
sal_True
;
...
...
@@ -851,6 +860,12 @@ sal_Bool CommandLineArgs::IsVersion() const
return
m_aBoolParams
[
CMD_BOOLPARAM_VERSION
];
}
sal_Bool
CommandLineArgs
::
HasUnknown
()
const
{
osl
::
MutexGuard
aMutexGuard
(
m_aMutex
);
return
m_aBoolParams
[
CMD_BOOLPARAM_UNKNOWN
];
}
sal_Bool
CommandLineArgs
::
HasModuleParam
()
const
{
osl
::
MutexGuard
aMutexGuard
(
m_aMutex
);
...
...
desktop/source/app/cmdlineargs.hxx
Dosyayı görüntüle @
4efbd87e
...
...
@@ -71,6 +71,7 @@ class CommandLineArgs
CMD_BOOLPARAM_HELPBASE
,
CMD_BOOLPARAM_PSN
,
CMD_BOOLPARAM_VERSION
,
CMD_BOOLPARAM_UNKNOWN
,
CMD_BOOLPARAM_COUNT
// must be last element!
};
...
...
@@ -162,6 +163,7 @@ class CommandLineArgs
sal_Bool
IsWeb
()
const
;
sal_Bool
IsVersion
()
const
;
sal_Bool
HasModuleParam
()
const
;
sal_Bool
HasUnknown
()
const
;
sal_Bool
WantsToLoadDocument
()
const
;
// Access to string parameters
...
...
desktop/source/app/officeipcthread.cxx
Dosyayı görüntüle @
4efbd87e
...
...
@@ -709,6 +709,12 @@ void OfficeIPCThread::execute()
#endif
continue
;
}
#ifdef UNX
if
(
aCmdLineArgs
->
HasUnknown
()
||
aCmdLineArgs
->
IsVersion
()
||
aCmdLineArgs
->
IsHelp
())
continue
;
#endif
const
CommandLineArgs
&
rCurrentCmdLineArgs
=
Desktop
::
GetCommandLineArgs
();
if
(
aCmdLineArgs
->
IsQuickstart
()
)
...
...
desktop/source/app/sofficemain.cxx
Dosyayı görüntüle @
4efbd87e
...
...
@@ -71,6 +71,10 @@ extern "C" int DESKTOP_DLLPUBLIC soffice_main()
desktop
::
displayVersion
();
return
EXIT_SUCCESS
;
}
else
if
(
rCmdLineArgs
.
HasUnknown
()
)
{
return
EXIT_FAILURE
;
}
#endif
return
SVMain
();
#ifdef ANDROID
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment