From 00a669ef3708f12001e0db59550da6ea7ea7e5f1 Mon Sep 17 00:00:00 2001 From: shubham Date: Fri, 26 Feb 2021 23:54:31 +0530 Subject: [PATCH] fix: maintain consistency with other args Signed-off-by: shubham --- mayastor/src/bin/mayastor-client/bdev_cli.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mayastor/src/bin/mayastor-client/bdev_cli.rs b/mayastor/src/bin/mayastor-client/bdev_cli.rs index 3aa8b83c4..f62e78b87 100644 --- a/mayastor/src/bin/mayastor-client/bdev_cli.rs +++ b/mayastor/src/bin/mayastor-client/bdev_cli.rs @@ -37,8 +37,11 @@ pub fn subcommands<'a, 'b>() -> App<'a, 'b> { let share = SubCommand::with_name("share") .about("share the given bdev") .arg(Arg::with_name("name").required(true).index(1)) - .arg(Arg::from_usage(" 'the protocol to used to share the given bdev'") + .arg( + Arg::with_name("protocol") .short("p") + .help("the protocol to used to share the given bdev") + .required(false) .possible_values(&["nvmf", "iscsi"]) .default_value("nvmf"), );