parent
97f2bcff69
commit
d5d06e6be0
|
@ -15,7 +15,7 @@ pub fn commitment_arg_with_default<'a, 'b>(default_value: &'static str) -> Arg<'
|
||||||
Arg::with_name(COMMITMENT_ARG.name)
|
Arg::with_name(COMMITMENT_ARG.name)
|
||||||
.long(COMMITMENT_ARG.long)
|
.long(COMMITMENT_ARG.long)
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.possible_values(&["recent", "root", "max"])
|
.possible_values(&["recent", "single", "root", "max"])
|
||||||
.default_value(default_value)
|
.default_value(default_value)
|
||||||
.value_name("COMMITMENT_LEVEL")
|
.value_name("COMMITMENT_LEVEL")
|
||||||
.help(COMMITMENT_ARG.help)
|
.help(COMMITMENT_ARG.help)
|
||||||
|
|
|
@ -183,6 +183,7 @@ pub fn commitment_of(matches: &ArgMatches<'_>, name: &str) -> Option<CommitmentC
|
||||||
"max" => CommitmentConfig::max(),
|
"max" => CommitmentConfig::max(),
|
||||||
"recent" => CommitmentConfig::recent(),
|
"recent" => CommitmentConfig::recent(),
|
||||||
"root" => CommitmentConfig::root(),
|
"root" => CommitmentConfig::root(),
|
||||||
|
"single" => CommitmentConfig::single(),
|
||||||
_ => CommitmentConfig::default(),
|
_ => CommitmentConfig::default(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue