We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a95669c commit 5e80b8cCopy full SHA for 5e80b8c
src/cli/mod.rs
@@ -31,6 +31,8 @@ pub(crate) enum Command {
31
Verify(VerifyArgs),
32
/// Generate a DOT representation of the graph of the model.
33
Graph(GraphArgs),
34
+ /// Print version and exit.
35
+ Version,
36
}
37
38
#[derive(Debug, Clone, ValueEnum)]
src/main.rs
@@ -13,6 +13,10 @@ fn main() {
13
Command::Sign(args) => cli::sign(args),
14
Command::Verify(args) => cli::verify(args),
15
Command::Graph(args) => cli::graph(args),
16
+ Command::Version => {
17
+ println!("{} v{}", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"));
18
+ Ok(())
19
+ }
20
};
21
22
if let Err(e) = ret {
0 commit comments