aws-cli icon indicating copy to clipboard operation
aws-cli copied to clipboard

--help should provide more useful output

Open alex opened this issue 6 years ago • 4 comments

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 avatar Apr 23 '19 17:04 alex

@alex - This sounds reasonable. Marking it as a feature request. Thanks!

justnance avatar Apr 23 '19 23:04 justnance

@alex - Looks like we are tracking this feature request under #303. I'm closing this issue to avoid duplicate efforts.

justnance avatar Apr 24 '19 14:04 justnance

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:

image

But for s3 commands the behavior is still:

image

tim-finnigan avatar Apr 03 '23 23:04 tim-finnigan

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.

dosmanak avatar Jun 05 '24 21:06 dosmanak