Since we introduced our own parsing function for command line arguments, we have to make sure that clap's behaviour is handled correctly. Clap's `get_matches_from_safe` returns an error of a certain kind, of which `ErrorKind::HelpDisplayed` and `ErrorKind::VersionDisplayed ` have to be handled to properly print the help/version and exit the program. The clap error includes the message, so we print help/version in main now and ensure the program exits with `0` afterwards.pull/519/head
parent
014388bfaa
commit
9ff29ae491
Loading…
Reference in new issue