feat: support leo --version or -V

This commit is contained in:
LouisWT 2023-05-06 23:06:05 +08:00
parent a998efbeef
commit a9965093f7

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", version = env!("CARGO_PKG_VERSION"), author = "The Aleo Team <hello@aleo.org>")]
pub struct CLI {
#[structopt(short, global = true, help = "Print additional information for debugging")]
debug: bool,