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

Add an API to reset/unset options and expose it at CLI level #1623

Open
mwestphal opened this issue Sep 15, 2024 · 0 comments
Open

Add an API to reset/unset options and expose it at CLI level #1623

mwestphal opened this issue Sep 15, 2024 · 0 comments
Labels
help wanted Please help with this issue! source:F3DApplication source:libf3d type:enhancement New feature or request

Comments

@mwestphal
Copy link
Contributor

Is your feature request related to a problem? Please describe.
With the addition of optional options, some options are now unset by default.
It would be nice to be able to unset an option that have been set.
Not only at libf3d API level but also at CLI level in order to override a config file option with CLI.

Describe the solution you'd like

  • Add options::unset specific to optional options
  • Add options::reset that either unset or reset to default
  • [maybe] add a options::isOptional
  • In F3DStarter::UpdateOptions, detect "default" as a special string and in that case call options::reset instead of setAsString
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Please help with this issue! source:F3DApplication source:libf3d type:enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

1 participant