This commit is contained in:
sxyazi 2026-03-20 15:46:12 +08:00
parent 662d5d5f8b
commit 4d7ff0cb0b
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -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])

View file

@ -78,13 +78,13 @@ pub(super) enum CommandPkg {
/// Packages to delete.
#[arg(index = 1, num_args = 1..)]
ids: Vec<String>,
/// 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<String>,
/// Discard any local changes made to packages.
/// Discard local changes made to packages while upgrading.
#[arg(long)]
discard: bool,
},

View file

@ -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()