Skip to content

Commit cd2cb5d

Browse files
committed
Oneliner to set signer version at compile time
1 parent 56eec59 commit cd2cb5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stacks-signer/src/cli.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ extern crate alloc;
4242

4343
#[derive(Parser, Debug)]
4444
#[command(author, version, about)]
45+
#[command(long_version = option_env!("SIGNER_VERSION").unwrap_or(env!("CARGO_PKG_VERSION")))]
46+
4547
/// The CLI arguments for the stacks signer
4648
pub struct Cli {
4749
/// Subcommand action to take

0 commit comments

Comments
 (0)