xmr-btc-swap/swap
Daniel Karzel 9ff29ae491
CLI --help and --version are handled correctly
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.
2021-05-21 11:46:11 +10:00
..
src CLI --help and --version are handled correctly 2021-05-21 11:46:11 +10:00
tests Network check upon spot price request 2021-05-20 13:03:29 +10:00
Cargo.toml Use tokio-tar from crates.io 2021-05-18 12:52:17 +10:00