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

Alternativ to pflag? #253

Open
jkroepke opened this issue Nov 25, 2023 · 4 comments
Open

Alternativ to pflag? #253

jkroepke opened this issue Nov 25, 2023 · 4 comments
Labels
question Further information is requested

Comments

@jkroepke
Copy link

Hi,

I would like to ask if there is an alternative CLI parser to pflag is planned? Last commit 2 years ago and I feel the project is dead.

https://github.com/spf13/pflag

I tried to use stdlib flag, but I miss some features like StringSlices

@jxsl13
Copy link
Contributor

jxsl13 commented Nov 25, 2023

the project is not dead but it is finished, lol

@jkroepke
Copy link
Author

That one more reason to switch away. If the project considered as finished, but it does not support features like TextVar. Then it can be considered as outdated.

However, reading spf13/pflag#385, there are different opinions.

Finished, Outdated, Unmaintained, Dead. At the end, a lot of bugs are opened and there is active maintenance.

@knadh knadh added the question Further information is requested label Nov 26, 2023
@fredbi
Copy link

fredbi commented Dec 13, 2023

Hello, I am the OP for spf13/pflag#385.
It looks like my proposal for help with cleaning up and upgrading the venerable spf13/pflag has been a long shot.
Initially, I merely wanted to clean it up and extend it with generics (like here: https://github.com/fredbi/gflag).

The main reason for clinging to pflag was the use of cobra and viper. But koanf looks like a reasonable alternative.
Let me know if you guys need help with hosting a hard-fork of pflag with a more up-to-date approach and cleaner interface.

@jxsl13
Copy link
Contributor

jxsl13 commented Dec 13, 2023

I'm using a combination of cobra and koanf, which would add an additional dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants