Add stdin-inputs flag to move command

This commit is contained in:
Paul Hauner
2022-12-15 09:32:07 +11:00
parent aeb70ca923
commit 8ca7f321e3

View File

@@ -156,6 +156,13 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.possible_values(&["true", "false"])
.takes_value(true),
)
.arg(
Arg::with_name(STDIN_INPUTS_FLAG)
.takes_value(false)
.hidden(cfg!(windows))
.long(STDIN_INPUTS_FLAG)
.help("If present, read all user inputs from stdin instead of tty."),
)
}
#[derive(Clone, PartialEq, Debug, Serialize, Deserialize)]