main: accept --arg=options without a warning

The workaround for argh's lack of --arg=option is not a big deal to keep
around permanently; just drop the warning message.

BUG=b:235882579
TEST=crosvm run --root=test.img vm_kernel # runs without warnings

Change-Id: I3ef5e237f80c2df775d684775e67a08f1fd89bf0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3739371
Reviewed-by: Dennis Kempin <denniskempin@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
Daniel Verkamp 2022-07-01 13:04:15 -07:00 committed by Chromeos LUCI
parent 070cc87986
commit 3ccb636365

View file

@ -426,11 +426,8 @@ fn crosvm_main() -> std::result::Result<CommandStatus, ()> {
args.push("--balloon-bias-mib".to_string());
}
arg if arg.starts_with("--") => {
// Split `--arg=val` into `--arg val`, since argh doesn't support the former.
if let Some((key, value)) = arg.split_once("=") {
eprintln!(
"`{}={}` is deprecated, please use `{} {}`",
key, value, key, value
);
args.push(key.to_string());
args.push(value.to_string());
} else {