summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/utils/net_rpc_shell.c')
-rw-r--r--source3/utils/net_rpc_shell.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c
index f2fa8b7e01..dee7a9f9c7 100644
--- a/source3/utils/net_rpc_shell.c
+++ b/source3/utils/net_rpc_shell.c
@@ -210,8 +210,9 @@ int net_rpc_shell(struct net_context *c, int argc, const char **argv)
NTSTATUS status;
struct rpc_sh_ctx *ctx;
- if (argc != 0) {
- d_fprintf(stderr, "usage: net rpc shell\n");
+ if (argc != 0 || c->display_usage) {
+ d_printf("Usage:\n"
+ "net rpc shell\n");
return -1;
}