diff options
author | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-27 20:26:17 +0100 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> | 2009-11-27 21:17:59 +0100 |
commit | e79dd2ef7d8b2aba7a84df5f5e82d2869a0598fc (patch) | |
tree | 8e4fcca8d6e02d8a1a91d264bd4bba30947cb15e /source4/utils/net | |
parent | 51328a7056918bc75a7c1c442f47cf0271075542 (diff) | |
download | samba-e79dd2ef7d8b2aba7a84df5f5e82d2869a0598fc.tar.gz samba-e79dd2ef7d8b2aba7a84df5f5e82d2869a0598fc.tar.bz2 samba-e79dd2ef7d8b2aba7a84df5f5e82d2869a0598fc.zip |
s4:net utility - add a notice for the "help" operation and format it's output of the command list better
Diffstat (limited to 'source4/utils/net')
-rw-r--r-- | source4/utils/net/net.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/utils/net/net.c b/source4/utils/net/net.c index a96c672dfd..828e46889e 100644 --- a/source4/utils/net/net.c +++ b/source4/utils/net/net.c @@ -120,7 +120,11 @@ int net_help(struct net_context *ctx, const struct net_functable *ftable) d_printf("Available commands:\n"); while (name && desc) { - d_printf("\t%s\t\t%s", name, desc); + if (strlen(name) > 7) { + d_printf("\t%s\t%s", name, desc); + } else { + d_printf("\t%s\t\t%s", name, desc); + } name = ftable[++i].name; desc = ftable[i].desc; } @@ -132,6 +136,7 @@ static int net_usage(struct net_context *ctx, int argc, const char **argv) { d_printf("Usage:\n"); d_printf("net <command> [options]\n"); + d_printf("Type 'net help' for all available commands\n"); return 0; } |