Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default help when no parameter is provided. Added -c parameter to specify cloudfront id. #4

Closed
wants to merge 3 commits into from

Conversation

phzbox
Copy link

@phzbox phzbox commented Oct 17, 2016

Hi, I had to fix this for myself so I thought I might as well pull request it to you.

  1. A bit confusing when typing s3front without any parameters. It throws an exception because -k is missing. I prefer to show by default the help message in that case.
  2. For me, it couldn't match the right cloudfront distribution to invalidate. I prefer passing the distribution ID, so I added a -c || --cloudfront . Also, there was no error message if no distribution were found so I added an error message and process.exit(). Otherwise it was just hanging.

@phzbox phzbox closed this Dec 18, 2020
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.

1 participant