mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
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:
parent
070cc87986
commit
3ccb636365
1 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue