Skip to content

Commit

Permalink
fix: add removed --version cli option
Browse files Browse the repository at this point in the history
Context:
* since version 1.8.0, git-workspace --version is not working, see:
  - 59df413

Solution:
* use clap parameter to add --version cli option
  • Loading branch information
jagu-sayan committed Feb 8, 2025
1 parent ec6262e commit 8212eff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8212eff

Please sign in to comment.