Support --version (#194)

This commit is contained in:
edi-oai
2026-08-17 13:59:48 +01:00
committed by GitHub
parent 18f5a3338e
commit 0528ec2002
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -25,7 +25,13 @@ use system_configuration::sys::preferences::{
};
use uzers::{get_current_groupname, get_current_username, get_effective_uid};
const VERSION: &str = match option_env!("SOFTNET_VERSION") {
Some(version) => version,
None => "unknown-unknown",
};
#[derive(Parser, Debug)]
#[command(version = VERSION)]
struct Args {
#[clap(
long,