status-im / nim-confutils

Simplified handling of command line options and config files
Apache License 2.0
63 stars 16 forks source link

Support `deprecated` in option pragmas #62

Open arnetheduck opened 1 year ago

arnetheduck commented 1 year ago

Sometimes a flag is removed from the UX after being made obsolete - similar to hidden, it should be possible to mark an option deprecated so that it's still parsed, but allowing the code to use the deprecation features of the language and potentially notify the user that the flag will no longer parse correctly in future releases.

See https://github.com/status-im/nimbus-eth2/blob/aff0505807ed81d7ca1677117dcfa9b30707eb50/beacon_chain/nimbus_beacon_node.nim#L1775 for examples.