pub fn has_help_flag(input: &[String]) -> bool {
input.contains(&"-h".to_string()) || input.contains(&"--help".to_string())
}
pub fn replace_hyphen_with_stdin(s: String) -> String {
let input_stream = std::io::stdin();
if s.contains("/-") {
let mut buffer = String::new();
input_stream
.read_line(&mut buffer)
.expect("could not read from standard input");
let args_from_stdin = buffer
.trim()
.split('/')
.filter(|&s| !s.is_empty())
.fold("".to_owned(), |acc, s| format!("{acc}/{s}"));
s.replace("/-", &args_from_stdin)
} else if s.contains("-/") {
let mut buffer = String::new();
input_stream
.read_line(&mut buffer)
.expect("could not read from standard input");
let args_from_stdin = buffer
.trim()
.split('/')
.filter(|&s| !s.is_empty())
.fold("/".to_owned(), |acc, s| format!("{acc}{s}/"));
s.replace("-/", &args_from_stdin)
} else {
s
}
}