diff --git a/CHANGELOG.md b/CHANGELOG.md index 8758cc44..67c775d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +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 `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]) @@ -1686,3 +1687,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/): [#3757]: https://github.com/sxyazi/yazi/pull/3757 [#3765]: https://github.com/sxyazi/yazi/pull/3765 [#3780]: https://github.com/sxyazi/yazi/pull/3780 +[#3781]: https://github.com/sxyazi/yazi/pull/3781 diff --git a/yazi-cli/src/args.rs b/yazi-cli/src/args.rs index e87e259b..109fa9b3 100644 --- a/yazi-cli/src/args.rs +++ b/yazi-cli/src/args.rs @@ -96,7 +96,7 @@ pub(super) enum CommandPkg { #[arg(index = 1, num_args = 0..)] ids: Vec, /// Discard any local changes made to packages. - #[arg(short, long)] + #[arg(long)] discard: bool, }, }