mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-07 22:12:51 -04:00
Provide a commit-specific version output
For builds made directly on the tag, the output of `--version` will not change. For builds not made on a tagged commit, the output will look something like this: ``` > swap --version swap 0.7.0-117-g93161f9 ``` Fixes #409.
This commit is contained in:
parent
93a69563a9
commit
714514edbc
5 changed files with 107 additions and 2 deletions
|
@ -245,7 +245,12 @@ pub enum Command {
|
|||
}
|
||||
|
||||
#[derive(structopt::StructOpt, Debug)]
|
||||
#[structopt(name = "swap", about = "CLI for swapping BTC for XMR", author)]
|
||||
#[structopt(
|
||||
name = "swap",
|
||||
about = "CLI for swapping BTC for XMR",
|
||||
author,
|
||||
version = env!("VERGEN_GIT_SEMVER_LIGHTWEIGHT")
|
||||
)]
|
||||
struct RawArguments {
|
||||
// global is necessary to ensure that clap can match against testnet in subcommands
|
||||
#[structopt(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue