~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to sources/main.cpp

  • Committer: Adam Reichold
  • Date: 2023-12-21 14:28:00 UTC
  • Revision ID: adam.reichold@t-online.de-20231221142800-xvhmfc8cfvwn3ra9
Remove Windows-style usage options as they do not work with how the argument parser is structured.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
 
165
165
    QStringList arguments = QApplication::arguments();
166
166
 
 
167
    qDebug() << arguments;
 
168
 
167
169
    if(!arguments.isEmpty())
168
170
    {
169
171
        arguments.removeFirst();
221
223
                    instanceName = chosenInstanceName;
222
224
                }
223
225
            }
224
 
#ifndef Q_OS_WIN
225
 
 
226
226
            else if(argument == QLatin1String("--help"))
227
 
 
228
 
#else
229
 
 
230
 
            else if(argument == QLatin1String("--help") || argument == QLatin1String("/help") || argument == QLatin1String("/?"))
231
 
 
232
 
#endif // Q_OS_WIN
233
227
            {
234
228
#ifndef Q_OS_WIN
235
229