Merge pull request #2371 from LouisWT/leo-version

feat: support leo --version
This commit is contained in:
d0cd 2023-05-08 11:01:17 -07:00 committed by GitHub
commit 86c206ab4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ use std::{path::PathBuf, process::exit};
/// CLI Arguments entry point - includes global parameters and subcommands
#[derive(StructOpt, Debug)]
#[structopt(name = "leo", author = "The Aleo Team <hello@aleo.org>")]
#[structopt(name = "leo", author = "The Aleo Team <hello@aleo.org>", version)]
pub struct CLI {
#[structopt(short, global = true, help = "Print additional information for debugging")]
debug: bool,