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

Exit early if flags are passed after URL #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mhils
Copy link

@mhils mhils commented Sep 1, 2021

Go's flag package expects all flags to come before positional arguments.
hey https://example.com -n 1 currently behaves like hey https://example.com, which is a bit unexpected.
This commit changes this behavior to exit and show usage information instead.

Thanks for maintaining hey, it has been super useful to me! 😃

Go's flag package expects all flags to come before positional arguments. `hey https://example.com -n 1` currently behaves like `hey https://example.com`, which is a bit unexpected. This commit changes this behavior to exit and show usage information instead.
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