--help should provide more useful output
Currently aws s3 ls --hep just says Unknown options: --help.
It could ideally a) Just do the right thing, or b) failing that, remind print that what you really want is aws s3 ls help.
@alex - This sounds reasonable. Marking it as a feature request. Thanks!
@alex - Looks like we are tracking this feature request under #303. I'm closing this issue to avoid duplicate efforts.
Reopening this issue as the error message for --help was recently fixed for other commands (see https://github.com/aws/aws-cli/pull/7765) but still results in unknown options --help for s3 commands.
To summarize the issue:
https://github.com/aws/aws-cli/pull/7765 fixed this for other services by printing the help blurb for other commands. For example, --help is an invalid parameter, so when that (or any invalid parameter) is used, then this guidance message should print showing how to use the help command:
But for s3 commands the behavior is still:
The help subcommand thing is ugly. --help argument effectively disables the command but help subcommand stated after args might be consumed as arg value causing unwanted behavior.