status-im / nim-confutils

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

restrict `parseCmdArgAux` to `ValueError` #83

Closed etan-status closed 1 year ago

etan-status commented 1 year ago

Value parsers are currently allowed to raise CatchableError, but in practice only ValueError is raised. Restrict to ValueError, and also properly convert them to fail / ConfigurationError if applicable.