pki: Don't print an error if no arguments are given
authorTobias Brunner <tobias@strongswan.org>
Fri, 13 Sep 2013 13:14:00 +0000 (15:14 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 13 Sep 2013 13:14:00 +0000 (15:14 +0200)
src/pki/command.c

index a5e5b85..984da59 100644 (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);
 }