@@ -296,8 +296,8 @@ int main( int argc, char *argv[] )
296
296
/* These options don't set a flag.
297
297
* We distinguish them by their indices. */
298
298
{" snapshot" , required_argument, 0 , ' s' },
299
- {" width" , required_argument, 0 , ' w' },
300
- {" height" , required_argument, 0 , ' h' },
299
+ {" width" , required_argument, 0 , ' w' },
300
+ {" height" , required_argument, 0 , ' h' },
301
301
{" lang" , required_argument, 0 , ' l' },
302
302
{" project" , required_argument, 0 , ' p' },
303
303
{" extent" , required_argument, 0 , ' e' },
@@ -398,11 +398,11 @@ int main( int argc, char *argv[] )
398
398
{
399
399
mySnapshotFileName = QDir::convertSeparators ( QFileInfo ( QFile::decodeName ( argv[++i] ) ).absoluteFilePath () );
400
400
}
401
- else if ( i + 1 < argc && ( arg == " -width" || arg == " -w" ) )
401
+ else if ( i + 1 < argc && ( arg == " -- width" || arg == " -w" ) )
402
402
{
403
403
mySnapshotWidth = QString ( argv[++i] ).toInt ();
404
404
}
405
- else if ( i + 1 < argc && ( arg == " -height" || arg == " -h" ) )
405
+ else if ( i + 1 < argc && ( arg == " -- height" || arg == " -h" ) )
406
406
{
407
407
mySnapshotHeight = QString ( argv[++i] ).toInt ();
408
408
}
0 commit comments