Skip to content

Do not split --header flag into multiple values #102

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

Merged
merged 2 commits into from
May 27, 2021
Merged

Do not split --header flag into multiple values #102

merged 2 commits into from
May 27, 2021

Conversation

boggyhole
Copy link
Contributor

Replaces pflag.StringSliceVarP with pflag.StringArrayVarP and thus
disallows multiple headers to be defined with a single flag.
Compare https://pkg.go.dev/github.com/spf13/pflag#StringSliceVar
for details.

The previous implementation did not allow header values to contain
a comma, this change fixes that.

boggyhole added 2 commits May 27, 2021 09:02
Replaces pflag.StringSliceVarP with pflag.StringArrayVarP and thus
disallows multiple headers to be defined with a single flag.
Compare https://pkg.go.dev/github.com/spf13/pflag#StringSliceVar
for details.

The previous implementation did not allow header values to contain
a comma, this change fixes that.
@codecov-commenter
Copy link

codecov-commenter commented May 27, 2021

Codecov Report

Merging #102 (a71835d) into master (54b8b0e) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #102   +/-   ##
=======================================
  Coverage   72.33%   72.33%           
=======================================
  Files           9        9           
  Lines         589      589           
=======================================
  Hits          426      426           
  Misses        130      130           
  Partials       33       33           
Impacted Files Coverage Δ
main.go 75.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 54b8b0e...a71835d. Read the comment docs.

@nakabonne nakabonne merged commit 41ab260 into nakabonne:master May 27, 2021
@boggyhole boggyhole deleted the enhancement/allow_comma_header_values branch May 27, 2021 08:01
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.

3 participants