From 6b78ebe10f31a1330064dc94c2cb7fa9273acd15 Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Fri, 4 Aug 2023 12:41:56 +0200 Subject: [PATCH] chore: update version docstrings --- src/main.rs | 2 ++ src/util.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index dc93488..90e2946 100644 --- a/src/main.rs +++ b/src/main.rs @@ -49,6 +49,8 @@ fn main() -> Result<()> { let args: util::Cli = util::Cli::parse_args_default_or_exit(); env::set_var(BW_SSH_DEBUG_ENV_KEY, OsString::from(args.debug.to_string())); + + // Print the version information and exit if the --version flag was passed. if args.version { println!("{}", &util::get_version_string()?); return Ok(()); diff --git a/src/util.rs b/src/util.rs index a9c551d..857abf5 100644 --- a/src/util.rs +++ b/src/util.rs @@ -17,7 +17,7 @@ pub struct Cli { pub passphrase: String, #[options(help = "session to use to log in to bitwarden-cli")] pub session: String, - #[options(help = "print version and exit")] + #[options(help = "print version information and exit")] pub version: bool, } -- libgit2 1.7.2