From 8ca7f321e3000a8e0cf07b7b72609dc401fd5862 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 15 Dec 2022 09:32:07 +1100 Subject: [PATCH] Add stdin-inputs flag to move command --- validator_manager/src/move_validators.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/validator_manager/src/move_validators.rs b/validator_manager/src/move_validators.rs index 57ce8a0ee1..54a6773fb1 100644 --- a/validator_manager/src/move_validators.rs +++ b/validator_manager/src/move_validators.rs @@ -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)]