diff --git a/commandline.cpp b/commandline.cpp index 5bbd4609..34a0309c 100644 --- a/commandline.cpp +++ b/commandline.cpp @@ -67,7 +67,7 @@ namespace arg { void lshift() { pos++; } void shift() { - lshift(); if(pos >= size(argument)) { printf("Missing parameter\n"); exit(1); } + lshift(); if(pos > size(argument)) { printf("Missing parameter\n"); exit(1); } } const string& args() { return argument[pos]; }