blt icon indicating copy to clipboard operation
blt copied to clipboard

Create macro to help with deprecating options?

Open kennyweiss opened this issue 4 years ago • 0 comments

Should we create a new macro to help blt users to gracefully migrate configuration options?

This macro could:

  • produce a custom warning message
  • indicate which option should be used instead
  • optionally cause a configuration error
  • ...

e.g.

blt_deprecated_option(
   NAME              foo  # option to deprecate
   MESSAGE           "Using deprecated option...."
   NEW_OPTION        bar   # use this instead
   IS_CONFIG_ERROR   false
   ...
  )

kennyweiss avatar May 25 '21 20:05 kennyweiss