Skip to content

Commit

Permalink
Allow the -n argument as no-op to make them more compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Feb 25, 2024
1 parent 9863d75 commit 8959b21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/plumbing/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ pub fn main() -> Result<()> {
#[cfg(feature = "gitoxide-core-tools-clean")]
Subcommands::Clean(crate::plumbing::options::clean::Command {
debug,
dry_run: _,
execute,
ignored,
precious,
Expand Down
6 changes: 4 additions & 2 deletions src/plumbing/options/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ pub mod corpus {
}

pub mod config {

use gix::bstr::BString;

/// Print all entries in a configuration file or access other sub-commands
Expand Down Expand Up @@ -506,6 +505,9 @@ pub mod clean {
/// Print additional debug information to help understand decisions it made.
#[arg(long)]
pub debug: bool,
/// A dummy to easy with muscle-memory. This flag is assumed if provided or not, and has no effect.
#[arg(short = 'n', long)]
pub dry_run: bool,
/// Actually perform the operation, which deletes files on disk without chance of recovery.
#[arg(long, short = 'e')]
pub execute: bool,
Expand Down Expand Up @@ -689,6 +691,7 @@ pub mod revision {
DiffOrGit,
}
}

#[derive(Debug, clap::Subcommand)]
#[clap(visible_alias = "rev", visible_alias = "r")]
pub enum Subcommands {
Expand Down Expand Up @@ -859,7 +862,6 @@ pub mod index {
}

pub mod submodule {

#[derive(Debug, clap::Parser)]
pub struct Platform {
#[clap(subcommand)]
Expand Down

0 comments on commit 8959b21

Please sign in to comment.