There's no end of arguments for -m

pull/522/head
Arijit Basu 2 years ago committed by Arijit Basu
parent 3fb174cdc0
commit 93e9b2b2ae

@ -120,7 +120,7 @@ impl Cli {
}
"-m" | "--pipe-msg-in" => {
while let Some(arg) = args.next_if(|arg| !arg.starts_with('-')) {
for arg in args.by_ref() {
cli.pipe_msg_in.push(arg);
}
}

@ -1089,7 +1089,7 @@ impl TryFrom<&str> for ExternalMsg {
type Error = anyhow::Error;
fn try_from(value: &str) -> Result<Self, Self::Error> {
let msg = if let Ok(val) = json::from_str(&value) {
let msg = if let Ok(val) = json::from_str(value) {
val
} else if value.starts_with('!') {
yaml::from_str(value)?

Loading…
Cancel
Save