This commit is contained in:
sxyazi 2025-02-07 02:50:43 +08:00
parent e974531d76
commit ab2338e7e0
No known key found for this signature in database

View file

@ -30,11 +30,11 @@ impl TryFrom<CmdCow> for PluginOpt {
Cmd::parse_args(yazi_shared::shell::split_unix(s)?.into_iter(), true)?
} else if let Some(s) = c.str("args") {
crate::deprecate!(
"The `args` parameter of the `plugin` command has been deprecated. Please use the second positional argument of `plugin` instead.
format!("The `args` parameter of the `plugin` command has been deprecated. Please use the second positional argument of `plugin` instead.
For example, replace `plugin test --args=foobar` with `plugin test foobar`.
For example, replace `plugin test --args=foobar` with `plugin test foobar`, for your `plugin {}` command.
See #2299 for more information: https://github.com/sxyazi/yazi/pull/2299"
See #2299 for more information: https://github.com/sxyazi/yazi/pull/2299", id)
);
Cmd::parse_args(yazi_shared::shell::split_unix(s)?.into_iter(), true)?
} else {