-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add commitment Root variant, and add fleshed out --commitment arg to …
…Cli (#9806) automerge
- Loading branch information
1 parent
a912360
commit 6deaf64
Showing
8 changed files
with
93 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
use crate::ArgConstant; | ||
use clap::Arg; | ||
|
||
pub const COMMITMENT_ARG: ArgConstant<'static> = ArgConstant { | ||
name: "commitment", | ||
long: "commitment", | ||
help: "Return information at the selected commitment level", | ||
}; | ||
|
||
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"]) | ||
.value_name("COMMITMENT_LEVEL") | ||
.help(COMMITMENT_ARG.help) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.