mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fixed build in MacOSX/Qt4
This commit is contained in:
parent
c365e2f9dc
commit
144c9537b7
@ -95,12 +95,12 @@ int main(int argc, char * argv[])
|
|||||||
if (!optlist.isEmpty())
|
if (!optlist.isEmpty())
|
||||||
{
|
{
|
||||||
QTextStream parser(stdout);
|
QTextStream parser(stdout);
|
||||||
if (optlist.contains("--version") | optlist.contains("-v"))
|
if (optlist.contains("--version") || optlist.contains("-v"))
|
||||||
{
|
{
|
||||||
parser << app.applicationName() << " " << QString(VERSION) << endl << "Copyright 2014 by Luis Angel San Martin Rodriguez" << endl;
|
parser << app.applicationName() << " " << QString(VERSION) << endl << "Copyright 2014 by Luis Angel San Martin Rodriguez" << endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (optlist.contains("--help") | optlist.contains("-h"))
|
if (optlist.contains("--help") || optlist.contains("-h"))
|
||||||
{
|
{
|
||||||
parser << endl << "Usage: YACReader [File|Directory|Option]" << endl << endl;
|
parser << endl << "Usage: YACReader [File|Directory|Option]" << endl << endl;
|
||||||
parser << "Options:" << endl;
|
parser << "Options:" << endl;
|
||||||
|
@ -149,12 +149,12 @@ int main( int argc, char ** argv )
|
|||||||
{
|
{
|
||||||
QTextStream parser(stdout);
|
QTextStream parser(stdout);
|
||||||
QStringList optlist = QCoreApplication::arguments().filter(QRegExp ("^-{1,2}"));
|
QStringList optlist = QCoreApplication::arguments().filter(QRegExp ("^-{1,2}"));
|
||||||
if (optlist.contains("--version") | optlist.contains("-v"))
|
if (optlist.contains("--version") || optlist.contains("-v"))
|
||||||
{
|
{
|
||||||
parser << app.applicationName() << " " << QString(VERSION) << endl << "Copyright 2014 by Luis Angel San Martin Rodriguez" << endl;
|
parser << app.applicationName() << " " << QString(VERSION) << endl << "Copyright 2014 by Luis Angel San Martin Rodriguez" << endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (optlist.contains("--help") | optlist.contains("-h"))
|
if (optlist.contains("--help") || optlist.contains("-h"))
|
||||||
{
|
{
|
||||||
parser << endl << "Usage:" << "\tYACReaderLibrary [Option]" << endl << endl;
|
parser << endl << "Usage:" << "\tYACReaderLibrary [Option]" << endl << endl;
|
||||||
parser << "Options:" << endl;
|
parser << "Options:" << endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user