summaryrefslogtreecommitdiff
path: root/quackleio
diff options
context:
space:
mode:
Diffstat (limited to 'quackleio')
-rw-r--r--quackleio/froggetopt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/quackleio/froggetopt.cpp b/quackleio/froggetopt.cpp
index 24d9d2c..9131ecc 100644
--- a/quackleio/froggetopt.cpp
+++ b/quackleio/froggetopt.cpp
@@ -180,6 +180,12 @@ GetOpt::GetOpt( int argc, char *argv[] )
void GetOpt::init( const QStringList &argv, int offset )
{
+ numReqArgs = numOptArgs = 0;
+ currArg = 1; // appname is not part of the arguments
+
+ // application name
+ aname = QFileInfo( argv[0] ).fileName();
+
for ( int i = offset; i < argv.size(); ++i )
args.append( argv[i] );
}