Skip to content

Commit

Permalink
fix: maintain consistency with other args
Browse files Browse the repository at this point in the history
Signed-off-by: shubham <[email protected]>
  • Loading branch information
shubham14bajpai committed Feb 26, 2021
1 parent 8c81fa9 commit 00a669e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mayastor/src/bin/mayastor-client/bdev_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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("<protocol> '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"),
);
Expand Down

0 comments on commit 00a669e

Please sign in to comment.