number of arguments error

Why is accessing the information of the number of arguments a plbLogicError when there are no arguments? It should return 0, that’s it… Do I miss anything?

[code=“cpp”]
int MainArgs::argc() const {
if (arguments.empty()) {
plbLogicError(“Can’t access command-line arguments: they have not yet been initialized.”);
}
return (int) arguments.size();
}