@@ -296,8 +296,8 @@ int main( int argc, char *argv[] )
296296 /* These options don't set a flag.
297297 * We distinguish them by their indices. */
298298 {" 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' },
301301 {" lang" , required_argument, 0 , ' l' },
302302 {" project" , required_argument, 0 , ' p' },
303303 {" extent" , required_argument, 0 , ' e' },
@@ -398,11 +398,11 @@ int main( int argc, char *argv[] )
398398 {
399399 mySnapshotFileName = QDir::convertSeparators ( QFileInfo ( QFile::decodeName ( argv[++i] ) ).absoluteFilePath () );
400400 }
401- else if ( i + 1 < argc && ( arg == " -width" || arg == " -w" ) )
401+ else if ( i + 1 < argc && ( arg == " -- width" || arg == " -w" ) )
402402 {
403403 mySnapshotWidth = QString ( argv[++i] ).toInt ();
404404 }
405- else if ( i + 1 < argc && ( arg == " -height" || arg == " -h" ) )
405+ else if ( i + 1 < argc && ( arg == " -- height" || arg == " -h" ) )
406406 {
407407 mySnapshotHeight = QString ( argv[++i] ).toInt ();
408408 }
0 commit comments