diff options
author | Rafal Szczesniak <mimir@samba.org> | 2005-02-16 21:54:01 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:10:44 -0500 |
commit | 308c7d26c1f9f91ff6667430a8a1a7b4cf4a3a7e (patch) | |
tree | fc78f61565fee248561d500646f971e781c654b6 /source4/utils/net/net_user.c | |
parent | a19b2e84f81baaa24651a44076ce2c62056135e9 (diff) | |
download | samba-308c7d26c1f9f91ff6667430a8a1a7b4cf4a3a7e.tar.gz samba-308c7d26c1f9f91ff6667430a8a1a7b4cf4a3a7e.tar.bz2 samba-308c7d26c1f9f91ff6667430a8a1a7b4cf4a3a7e.zip |
r5425: Convert function tables to new structure (with description)
and remove unnecessary help functions as help is generated
automatically. Usage functions with precise information about
usage of each leaf node remain.
rafal
(This used to be commit eb66180d14a14cafbfc0df2b39eeaf4ad7bb43a9)
Diffstat (limited to 'source4/utils/net/net_user.c')
-rw-r--r-- | source4/utils/net/net_user.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source4/utils/net/net_user.c b/source4/utils/net/net_user.c index 845eed0665..4a472e6997 100644 --- a/source4/utils/net/net_user.c +++ b/source4/utils/net/net_user.c @@ -69,8 +69,7 @@ static int net_user_add(struct net_context *ctx, int argc, const char **argv) static const struct net_functable net_user_functable[] = { - { "add", net_user_add, net_user_usage, net_user_help }, - { "help", net_user_help, net_user_usage, net_user_help }, + { "add", "create new user account\n", net_user_add, net_user_usage }, { NULL, NULL } }; @@ -81,14 +80,6 @@ int net_user(struct net_context *ctx, int argc, const char **argv) } -int net_user_help(struct net_context *ctx, int argc, const char **argv) -{ - d_printf("User accounts management:\n"); - d_printf("\tadd\t\tcreates new account\n"); - return 0; -} - - int net_user_usage(struct net_context *ctx, int argc, const char **argv) { d_printf("net user <command> [options]\n"); |