xmr-btc-swap/swap
bors[bot] ba33e1acc1
Merge #519
519: Avoid application error upon `--help` r=da-kami a=da-kami

Our `preview` release is currently broken because of this issue.

The way we use clap's `get_matches_from_safe` caused parsing errors upon `--help` and `--version` to be bubbled up to the application - which causes the application to exit with an error when running `--help` and `--version`.
This is solved by using `get_matches_from` instead of `get_matches_from_safe` which handles these known clap commands internally and exits early. 

Added smoke tests to CI so we catch such kind of problems in the future. Smoke testing by calling `--help` is cheap and should be OK in CI.

Co-authored-by: Daniel Karzel <daniel@comit.network>
2021-05-21 05:43:24 +00: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 Bump libp2p from 0.37.1 to 0.38.0 2021-05-18 06:33:38 +00:00