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

Being able to parse without validation during init #1228

Open
GMZwinge opened this issue Oct 21, 2024 · 0 comments
Open

Being able to parse without validation during init #1228

GMZwinge opened this issue Oct 21, 2024 · 0 comments
Labels
waiting for interest Waiting to see if there's strong community interest

Comments

@GMZwinge
Copy link

Is your feature request related to a problem? Please describe.
In out init, we sometime set some flag's default based on parsed flags. For example, when moving data between servers, we use the values of some flags for the first server as defaults for the other server(s). It is currently possible, except for required flags where the parse fails the validation.

In some cases where multiple command are for a type of environment, we have a base class shared by those commands. In that base init, it would also be nice to do a parse without validation failure for the flags in the derived classes.

Describe the solution you'd like
It would be nice to be able to parse without validation.

Describe alternatives you've considered
Our current workaround is to save the required values, reset the required values, parse and restore the required values.

Additional context
Related to #854 and #829.

@mdonnalley mdonnalley added the waiting for interest Waiting to see if there's strong community interest label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for interest Waiting to see if there's strong community interest
Projects
None yet
Development

No branches or pull requests

2 participants