mirror of
https://github.com/sayanarijit/xplr.git
synced 2024-09-11 11:05:39 +03:00
There's no end of arguments for -m
This commit is contained in:
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…
Reference in New Issue
Block a user