Navigation Menu

Skip to content

Commit

Permalink
Start argument count with proper offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wachter committed Aug 22, 2014
1 parent 3174910 commit b934f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssucli/ssucli.cpp
Expand Up @@ -580,7 +580,7 @@ void SsuCli::run(){
};

bool found = false;
int argc = arguments.count() - 1;
int argc = arguments.count() - 2;

for (int i=0; i<sizeof(handlers)/sizeof(handlers[0]); i++) {
if ((arguments.at(1) != handlers[i].longopt) &&
Expand Down

0 comments on commit b934f3e

Please sign in to comment.