Skip to content

Headers cli flag#30

Open
bconnorwhite wants to merge 4 commits intohelios1138:masterfrom
bconnorwhite:master
Open

Headers cli flag#30
bconnorwhite wants to merge 4 commits intohelios1138:masterfrom
bconnorwhite:master

Conversation

@bconnorwhite
Copy link
Copy Markdown

Added option to set headers through cli tool

@zhigang1992
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown

@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