From 530d46f6748a17ca8500a861f53c0d4f451b2005 Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Tue, 15 Feb 2005 01:11:20 +0000 Subject: r5400: Slightly better handling of help messages in net tool. rafal (This used to be commit 5cebb4feedf7d6542c497fe55763d66f51b1c989) --- source4/utils/net/net_time.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'source4/utils/net/net_time.c') diff --git a/source4/utils/net/net_time.c b/source4/utils/net/net_time.c index ec3bc0519f..ce7db4ab5c 100644 --- a/source4/utils/net/net_time.c +++ b/source4/utils/net/net_time.c @@ -28,7 +28,6 @@ * Code for getting the remote time */ - int net_time(struct net_context *ctx, int argc, const char **argv) { NTSTATUS status; @@ -41,8 +40,7 @@ int net_time(struct net_context *ctx, int argc, const char **argv) if (argc > 0 && argv[0]) { server_name = argv[0]; } else { - DEBUG(0,("net_time: server name needed!\n")); - return -1; + return net_time_usage(ctx, argc, argv); } libnetctx = libnet_context_init(); @@ -77,12 +75,12 @@ int net_time(struct net_context *ctx, int argc, const char **argv) int net_time_usage(struct net_context *ctx, int argc, const char **argv) { - d_printf("net_time_usage: TODO\n"); + d_printf("net time [options]\n"); return 0; } int net_time_help(struct net_context *ctx, int argc, const char **argv) { - d_printf("net_time_help: TODO\n"); + d_printf("Displays remote server's time.\n"); return 0; } -- cgit