-
Notifications
You must be signed in to change notification settings - Fork 1
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 Argparse actions (with a wrapper) as multiconfparse actions? #88
Comments
Step 1: make Multiconfparse actions more like Argparse actions by:
|
For #88 This is to make implementing actions more familiar to argparse users and to, perhaps, make it possible to convert existing argparse actions to multiconfparse actions. * Rename `Action.accumulate_processed_value` to `Action.__call__`. * Pass `Action.__call__` a `Namespace` object rather than just the current value for the config item. * Instead of populating a `Namespace` attribute with `NONE` to represent the lack of a default value, just don't set the attribute at all.
For #88 This is to make implementing actions more familiar to argparse users and to, perhaps, make it possible to convert existing argparse actions to multiconfparse actions. * Rename `Action.accumulate_processed_value` to `Action.__call__`. * Pass `Action.__call__` a `Namespace` object rather than just the current value for the config item. * Instead of populating a `Namespace` attribute with `NONE` to represent the lack of a default value, just don't set the attribute at all.
For #88 This is to make implementing actions more familiar to argparse users and to, perhaps, make it possible to convert existing argparse actions to multiconfparse actions. * Rename `Action.accumulate_processed_value` to `Action.__call__`. * Pass `Action.__call__` a `Namespace` object rather than just the current value for the config item. * Instead of populating a `Namespace` attribute with `NONE` to represent the lack of a default value, just don't set the attribute at all.
For #88 This is to make implementing actions more familiar to argparse users and to, perhaps, make it possible to convert existing argparse actions to multiconfparse actions. * Rename `Action.accumulate_processed_value` to `Action.__call__`. * Pass `Action.__call__` a `Namespace` object rather than just the current value for the config item. * Instead of populating a `Namespace` attribute with `NONE` to represent the lack of a default value, just don't set the attribute at all.
Let's see what values look like when they get to an Argparse
It's a bit strange that in the |
Using |
No description provided.
The text was updated successfully, but these errors were encountered: