Skip to content

Conversation

@EpicWink
Copy link

Aliases as specified with name. Single-letter aliases are prefixed with a single hyphen, otherwise with two hyphens. ValueError is raised when positional argument defines aliases.

Aliases are:

  • -r for --recursive (s3 cp, s3 ls, s3 mv, s3 rm)
  • -H for --human-readable (s3 ls)
  • -s for --summarize (s3 ls)
  • -n for --dryrun (s3 cp, s3 mv, s3 rm)

Resolves #9972

  • By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Aliases as specified with name. Single-letter aliases are prefixed with
a single hyphen, otherwise with two hyphens. ValueError is raised when
positional argument defines aliases.

Aliases are:
* '-r' for '--recursive' ('s3 cp', 's3 ls', 's3 mv', 's3 rm')
* '-H' for '--human-readable' ('s3 ls')
* '-s' for '--summarize' ('s3 ls')
* '-n' for '--dryrun' ('s3 cp', 's3 mv', 's3 rm')
@EpicWink
Copy link
Author

EpicWink commented Jan 16, 2026

I've added support for short options to the completer, but it assumes all 1-length options are short, and it also changes the logic (instead of stripping the leading hyphens from the argument, it pre-pends hyphens to all available options). It would be simpler to remove support in the completer: did you want this?

I've left this merge request as multiple commits until this question is resolved.

@EpicWink EpicWink marked this pull request as ready for review January 16, 2026 03:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add short option parameters to aws s3 commands

1 participant