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

Headers cli flag #30

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

bconnorwhite
Copy link

Added option to set headers through cli tool

@zhigang1992
Copy link

zhigang1992 commented Apr 19, 2020

Can you add doc to readme? also would it be better to do -h 'Authorization: Bear abcd' instead. Better for commandline.

@bconnorwhite
Copy link
Author

I forgot you can use the same flag multiple times with commander, I've adjusted this now to stack multiple headers:
... -H 'Authorization: Bearer abcd' -H 'Another: header'

Also added the header option to the README. I left the short flag as -H instead of -h though to avoid a collision with the -h help flag, but feel free to change this

@zhigang1992
Copy link

@helios1138 plz take a look. 😄

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.

2 participants