mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-11-23 00:44:55 +03:00
Use '-' to read Hurl file from standard input
This commit is contained in:
parent
a5120e9a25
commit
a749929a71
@ -201,7 +201,7 @@ pub fn input_files(arg_matches: &ArgMatches) -> Result<Vec<Input>, CliOptionsErr
|
||||
let mut files = vec![];
|
||||
if let Some(filenames) = get_strings(arg_matches, "input_files") {
|
||||
for filename in &filenames {
|
||||
let file = Input::File(PathBuf::from(filename));
|
||||
let file = Input::new(filename);
|
||||
if !file.exists() {
|
||||
return Err(CliOptionsError::InvalidInputFile(PathBuf::from(filename)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user