From 8212eff9e42bf3027db87d8aefa4103ef7d77733 Mon Sep 17 00:00:00 2001 From: jagu-sayan Date: Sat, 8 Feb 2025 13:45:14 +0100 Subject: [PATCH] fix: add removed --version cli option Context: * since version 1.8.0, git-workspace --version is not working, see: - https://github.com/orf/git-workspace/commit/59df413d3cd16c7849a024ef2b8de3fd1ff2b337 Solution: * use clap parameter to add --version cli option --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1eba922..80bba11 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,7 @@ use git_workspace::utils::{ensure_workspace_dir_exists, expand_workspace_path}; use std::path::PathBuf; #[derive(clap::Parser)] -#[command(name = "git-workspace", author, about)] +#[command(name = "git-workspace", author, about, version)] struct Args { #[arg(short = 'w', long = "workspace", env = "GIT_WORKSPACE")] workspace: PathBuf,