Allow -h to be used to specify the hostname

This matches the behaviour of the other commandline tools.
Since this is a bit non-standard, the usage message now specifically mentions the --help option.
Also added a check for excess arguments.