mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
9ff29ae491
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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |