Hived returns 0 after command line parsing error
Description
When you pass wrong command line argument during running hived
it will print some error message and return 0 (success). Should return some non zero code.
How to reproduce
$ hived --unsupported-argument
Error parsing command line: unrecognised option '--unsupported-argument'
$ echo $? # Print value returned by previous command
0
Additional info
It would be great to return different error codes for different errors. For example errors presented below should return different values:
$ hived --stop-replay-at-block
Error parsing command line: the required argument for option '--stop-replay-at-block' is missing
$ echo $?
0 # First error code, should be different than second
$ hived --unsupported-argument
Error parsing command line: unrecognised option '--unsupported-argument'
$ echo $?
0 # Second error code, should be different than first