diff options
author | Kai Blin <kai@samba.org> | 2008-05-15 10:14:41 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2008-05-20 14:28:12 +0200 |
commit | 0210f7af917d0e4ea1f16f9c6e767b8fe817c095 (patch) | |
tree | 23720fe77b5f58faa8bcfd33396ba5d8eb18e9e9 /source3/utils/net_dom.c | |
parent | 89cd35d0549eeee1c31d976b86cf4fd45a664c8a (diff) | |
download | samba-0210f7af917d0e4ea1f16f9c6e767b8fe817c095.tar.gz samba-0210f7af917d0e4ea1f16f9c6e767b8fe817c095.tar.bz2 samba-0210f7af917d0e4ea1f16f9c6e767b8fe817c095.zip |
net: The top level help function for net cmd is always net_cmd_usage
(This used to be commit f7d0903a58b0b0fc248a613937a101f15baa5311)
Diffstat (limited to 'source3/utils/net_dom.c')
-rw-r--r-- | source3/utils/net_dom.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/source3/utils/net_dom.c b/source3/utils/net_dom.c index 1a876a7ba3..a0de818bff 100644 --- a/source3/utils/net_dom.c +++ b/source3/utils/net_dom.c @@ -20,22 +20,14 @@ #include "includes.h" #include "utils/net.h" -static int net_dom_usage(struct net_context *c, int argc, const char **argv) +int net_dom_usage(struct net_context *c, int argc, const char **argv) { d_printf("usage: net dom join " - "<domain=DOMAIN> <ou=OU> <account=ACCOUNT> <password=PASSWORD> <reboot>\n"); + "<domain=DOMAIN> <ou=OU> <account=ACCOUNT> "\ + "<password=PASSWORD> <reboot>\n Join a remote machine\n"); d_printf("usage: net dom unjoin " - "<account=ACCOUNT> <password=PASSWORD> <reboot>\n"); - - return -1; -} - -int net_help_dom(struct net_context *c, int argc, const char **argv) -{ - d_printf("net dom join"\ - "\n Join a remote machine\n"); - d_printf("net dom unjoin"\ - "\n Unjoin a remote machine\n"); + "<account=ACCOUNT> <password=PASSWORD> <reboot>\n"\ + " Unjoin a remote machine\n"); return -1; } @@ -238,7 +230,7 @@ int net_dom(struct net_context *c, int argc, const char **argv) struct functable func[] = { {"JOIN", net_dom_join}, {"UNJOIN", net_dom_unjoin}, - {"HELP", net_help_dom}, + {"HELP", net_dom_usage}, {NULL, NULL} }; |