disk: Deprecate disk options.
If we want to deprecate them, add them to the help message.
BUG=None
TEST=crosvm help
Change-Id: I068debb1eec277062735f4325976e46bc5c60d30
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4944653
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Commit-Queue: Junichi Uekawa <uekawa@chromium.org>
diff --git a/src/crosvm/cmdline.rs b/src/crosvm/cmdline.rs
index fb2de80..657ab17 100644
--- a/src/crosvm/cmdline.rs
+++ b/src/crosvm/cmdline.rs
@@ -1133,7 +1133,7 @@
#[serde(skip)] // Deprecated - use `block` instead.
#[merge(strategy = append)]
/// path to a disk image followed by optional comma-separated
- /// options.
+ /// options. Deprecated - use `block` instead.
/// Valid keys:
/// sparse=BOOL - Indicates whether the disk should support
/// the discard operation (default: true)
@@ -1787,7 +1787,7 @@
#[serde(skip)] // Deprecated - use `block` instead.
#[merge(strategy = overwrite_option)]
/// path to a disk image followed by optional comma-separated
- /// options.
+ /// options. Deprecated - use `block` instead.
/// Valid keys:
/// sparse=BOOL - Indicates whether the disk should support
/// the discard operation (default: true)
@@ -1820,7 +1820,7 @@
#[serde(skip)] // Deprecated - use `block` instead.
#[merge(strategy = append)]
/// path to a read-write disk image followed by optional
- /// comma-separated options.
+ /// comma-separated options. Deprecated - use `block` instead.
/// Valid keys:
/// sparse=BOOL - Indicates whether the disk should support
/// the discard operation (default: true)
@@ -1835,7 +1835,7 @@
#[serde(skip)] // Deprecated - use `block` instead.
#[merge(strategy = overwrite_option)]
/// path to a read-write root disk image followed by optional
- /// comma-separated options.
+ /// comma-separated options. Deprecated - use `block` instead.
/// Valid keys:
/// sparse=BOOL - Indicates whether the disk should support
/// the discard operation (default: true)