f3d icon indicating copy to clipboard operation
f3d copied to clipboard

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

Open mwestphal opened this issue 1 year ago • 1 comments

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

mwestphal avatar Sep 15 '24 08:09 mwestphal

Is this issue still open? If yes I would like to work on it.

Yogesh9000 avatar Sep 27 '24 19:09 Yogesh9000

done partially in https://github.com/f3d-app/f3d/pull/1640

mwestphal avatar Nov 01 '24 11:11 mwestphal

@Yogesh9000 wanna finish this one ?

mwestphal avatar Nov 01 '24 11:11 mwestphal

No feedback from @Yogesh9000 , unassigning

mwestphal avatar Nov 17 '24 12:11 mwestphal

i am taking this issue

voidrc avatar Dec 17 '24 16:12 voidrc

Sorry, this issue is becoming not needed in the context of #1530

mwestphal avatar Dec 19 '24 08:12 mwestphal

Will be reworked to be part of https://github.com/f3d-app/f3d/issues/1600

mwestphal avatar Mar 01 '25 11:03 mwestphal