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

How can I avoid filtering double quotes? #146

Closed
zan8in opened this issue Oct 10, 2023 · 1 comment
Closed

How can I avoid filtering double quotes? #146

zan8in opened this issue Oct 10, 2023 · 1 comment
Labels
Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.

Comments

@zan8in
Copy link

zan8in commented Oct 10, 2023

code:

flagSet.StringVarP(&options.Search, "search", "s", "", "query conditions"),

cmd:
-s domain="example.com"

The output result of golang debug is
domain=example.com

How can I avoid filtering double quotes?

@Mzack9999
Copy link
Member

Mzack9999 commented Oct 10, 2023

Unfortunately this is a side effect of forceful values normalization introduced back then to handle particular comma separated values, which is going to be removed as it's a go anti-pattern, I'm opening a follow up issue. For the time being you can try with escaping \"

Ref: #147

@Mzack9999 Mzack9999 closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2023
@Mzack9999 Mzack9999 added the Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all. label Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question A query or seeking clarification on parts of the spec. Probably doesn't need the attention of all.
Projects
None yet
Development

No branches or pull requests

2 participants