Add clap.rs default for --commitment (#9859)

This commit is contained in:
Michael Vines
2020-05-02 13:06:35 -07:00
committed by GitHub
parent f37f83fd12
commit ffbbdd46e8
3 changed files with 12 additions and 27 deletions

View File

@ -11,7 +11,8 @@ pub fn commitment_arg<'a, 'b>() -> Arg<'a, 'b> {
Arg::with_name(COMMITMENT_ARG.name)
.long(COMMITMENT_ARG.long)
.takes_value(true)
.possible_values(&["default", "max", "recent", "root"])
.possible_values(&["recent", "root", "max"])
.default_value("recent")
.value_name("COMMITMENT_LEVEL")
.help(COMMITMENT_ARG.help)
}