s3:rpclient: rpclient help is not very helpful
commite903d37ea4a8372f819f8bdbec7dfeef1799f612
authorTim Beale <timbeale@catalyst.net.nz>
Tue, 22 Jan 2019 22:07:42 +0000 (23 11:07 +1300)
committerRalph Boehme <slow@samba.org>
Fri, 25 Jan 2019 12:20:23 +0000 (25 13:20 +0100)
tree300ed95eec3c02518c6210681d66dc2da658b06d
parent67fc683a3eec4d24de774e2a82c72b69eb03565e
s3:rpclient: rpclient help is not very helpful

The help was not telling me that there was a mandatory 'server' argument
that I needed to specify. After trying several different combinations
of parameters, I eventually had to run the tool in gdb to work out why
it was complaining.

This is the output I was getting:

bin/rpcclient -U$USERNAME%$PASSWORD -I $SERVER_IP
Usage: rpcclient [OPTION...]
  -c, --command=COMMANDS                 Execute semicolon separated
cmds
  -I, --dest-ip=IP                       Specify destination IP address
  -p, --port=PORT                        Specify port number
...

New help output is:

Usage: rpcclient [OPTION...] <server>
Options:
  -c, --command=COMMANDS                 Execute semicolon separated
cmds
...

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/rpcclient/rpcclient.c