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

Allow long flag with equal sign but no args (--foo= --bar=x) #141

Closed
wants to merge 1 commit into from

Conversation

tgulacsi
Copy link

Allow empty long flags (--tls.key= --tls.cert=) - the current parser uses the next argument (--tls.cert=) as the value.

Fixes #138 .

@ccoVeille
Copy link

ccoVeille commented Jan 28, 2025

Please be careful about the other implementation currently in PR

Especially this thread

#139 (comment)

@tgulacsi
Copy link
Author

Thanks @ccoVeille , you're right, a86c7b7 fixes my problem (long string args with default values where I want to specify an empty string).
When will it be merged & released ?

@ccoVeille
Copy link

I don't know.

I'm a random Gopher just like you.

The repository owner didn't reply to the question we raised in this thread

@tgulacsi tgulacsi closed this Jan 28, 2025
@tgulacsi
Copy link
Author

Let's concentrate on #139

@tgulacsi tgulacsi deleted the empty-longopt branch January 28, 2025 17:17
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.

Questions about parsing of long flags with = in them
2 participants