#include "includes.h"
#include "utils/net.h"
-
/*
return the time on a server. This does not require any authentication
*/
{"SYSTEM", net_time_system},
{"SET", net_time_set},
{"ZONE", net_time_zone},
+ {"HELP", net_time_usage},
{NULL, NULL}
};
+ if (argc != 0) {
+ return net_run_function(c, argc, argv, func, net_time_usage);
+ }
+
if (!c->opt_host && !c->opt_have_ip &&
!find_master_ip(c->opt_target_workgroup, &c->opt_dest_ip)) {
d_fprintf(stderr, "Could not locate a time server. Try "\
return -1;
}
- if (argc != 0) {
- return net_run_function(c, argc, argv, func, net_time_usage);
- }
-
/* default - print the time */
t = cli_servertime(c->opt_host, c->opt_have_ip? &c->opt_dest_ip : NULL,
NULL);