From 4d7ff0cb0b27dbf9b56f107ee7a3e0e735f00a6c Mon Sep 17 00:00:00 2001 From: sxyazi Date: Fri, 20 Mar 2026 15:46:12 +0800 Subject: [PATCH] Reword --- CHANGELOG.md | 2 +- yazi-cli/src/args.rs | 6 +++--- yazi-cli/src/package/hash.rs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 67c775d3..5c97d706 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): - New `ind-app-title` DDS event to customize the app title ([#3684]) - New `ind-hidden` and `key-hidden` DDS events to change hidden status in Lua ([#3748]) - New `marker_symbol` option to specify the symbol used for marking files ([#3689]) -- New `--discard` for `ya pkg` to discard any local changes made to packages ([#3781]) +- New `--discard` for `ya pkg` that discard local changes made to packages ([#3781]) - New `fs.unique()` creates a unique file or directory ([#3677]) - New `download` DDS event fires when remote files are downloaded ([#3687]) - New `ind-which-activate` DDS event to change the which component behavior ([#3608]) diff --git a/yazi-cli/src/args.rs b/yazi-cli/src/args.rs index 109fa9b3..17b75040 100644 --- a/yazi-cli/src/args.rs +++ b/yazi-cli/src/args.rs @@ -78,13 +78,13 @@ pub(super) enum CommandPkg { /// Packages to delete. #[arg(index = 1, num_args = 1..)] ids: Vec, - /// Discard any local changes made to packages. + /// Discard local changes made to packages while deleting. #[arg(long)] discard: bool, }, /// Install all packages. Install { - /// Discard any local changes made to packages. + /// Discard local changes made to packages while installing. #[arg(long)] discard: bool, }, @@ -95,7 +95,7 @@ pub(super) enum CommandPkg { /// Packages to upgrade, upgrade all if unspecified. #[arg(index = 1, num_args = 0..)] ids: Vec, - /// Discard any local changes made to packages. + /// Discard local changes made to packages while upgrading. #[arg(long)] discard: bool, }, diff --git a/yazi-cli/src/package/hash.rs b/yazi-cli/src/package/hash.rs index e6e073c6..39a4e62b 100644 --- a/yazi-cli/src/package/hash.rs +++ b/yazi-cli/src/package/hash.rs @@ -46,7 +46,7 @@ impl Dependency { if self.hash != self.hash().await? { bail!( "You have modified the contents of the `{}` {}. For safety, the operation has been aborted. -Please manually delete it from `{}` and re-run the command, or add `--discard` to discard any local changes.", +Please manually delete it from `{}` and re-run the command, or use `--discard` to discard those local changes.", self.name, if self.is_flavor { "flavor" } else { "plugin" }, self.target().display()