Skip to content

Commit d7a993c

Browse files
committed
feat: Add -n short for --dry-run
1 parent fc79879 commit d7a993c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Upgrade dependency version requirements in Cargo.toml manifest files
7474
Usage: cargo upgrade [OPTIONS]
7575

7676
Options:
77-
--dry-run Print changes to be made without making them
77+
-n, --dry-run Print changes to be made without making them
7878
--manifest-path <PATH> Path to the manifest to upgrade
7979
--rust-version <VER> Override `rust-version`
8080
--ignore-rust-version Ignore `rust-version` specification in packages
@@ -133,7 +133,7 @@ Options:
133133
-p, --package <PKGID> Package id of the crate to change the version of
134134
--all [deprecated in favor of `--workspace`]
135135
--workspace Modify all packages in the workspace
136-
--dry-run Print changes to be made without making them
136+
-n, --dry-run Print changes to be made without making them
137137
--exclude <EXCLUDE> Crates to exclude and not modify
138138
--offline Run without accessing the network
139139
--locked Require `Cargo.toml` to be up to date

src/bin/set-version/set_version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct VersionArgs {
5353
workspace: bool,
5454

5555
/// Print changes to be made without making them.
56-
#[arg(long)]
56+
#[arg(long, short = 'n')]
5757
dry_run: bool,
5858

5959
/// Crates to exclude and not modify.

src/bin/upgrade/upgrade.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use termcolor::{Color, ColorSpec};
1919
#[command(version)]
2020
pub struct UpgradeArgs {
2121
/// Print changes to be made without making them.
22-
#[arg(long)]
22+
#[arg(long, short = 'n')]
2323
dry_run: bool,
2424

2525
/// Path to the manifest to upgrade

0 commit comments

Comments
 (0)