Commit b934f3e6 authored by Aard's avatar Aard

Start argument count with proper offset

parent 3174910a
......@@ -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) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment