You can clone with
Currently, if an option parser fails on some argument it will report only Cannot parse value and a user will be confused about what exactly went wrong. Consider this situation:
Cannot parse value
$ ./mbus-server --port dsf --key dsf
mbus-server: Cannot parse value
In this case you should figure out on your own whether you mistyped port or it was key. I believe some context information would help, e. g. an option/argument on which parser failed and a relevant piece of input.
Add context to parse errors (fixes #40).
Print option name and string which failed to parse together with the
Added option name and parsed string to the error message. Your example would now print:
option --port: cannot parse value