Skip to content

Commit a99fb37

Browse files
author
jef
committedJul 24, 2009
fix size long options
git-svn-id: http://svn.osgeo.org/qgis/trunk@11173 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 2d51ee5 commit a99fb37

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎src/app/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
Please sign in to comment.