--- a/src/Commands.cc Sun Feb 09 04:13:15 2014 +0200 +++ b/src/Commands.cc Sun Feb 09 14:30:18 2014 +0200 @@ -73,16 +73,16 @@ text += ' '; text += name; - if (maxargs != 0) + if (args.IsEmpty() == false) text += ' '; text += '('; bool hasoptionals = false; - for (int i = 0; i < maxargs; i++) + for (int i = 0; i < args.Size(); i++) { - if (i == numargs) + if (i == minargs) { hasoptionals = true; text += '['; @@ -95,7 +95,7 @@ text += ' '; text += args[i].name; - if (i >= numargs) + if (i >= minargs) { text += " = ";