pki: Don't print an error if no arguments are given

This commit is contained in:
Tobias Brunner 2013-09-13 15:14:00 +02:00
parent 0dc8ba8779
commit ed56c86ec1
1 changed files with 1 additions and 1 deletions

View File

@ -258,6 +258,6 @@ int command_dispatch(int c, char *v[])
return cmds[i].call();
}
}
return command_usage("invalid operation");
return command_usage(c > 1 ? "invalid operation" : NULL);
}