mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-30 07:01:34 +02:00
Fix new instances of clap being way more strict now (#350)
This commit is contained in:
parent
75784667bc
commit
3aa128c4ee
@ -29,7 +29,7 @@ pub async fn dirs(args: &ArgMatches) -> Result<(PathBuf, PathBuf)> {
|
|||||||
debug!(?homedir, "home directory");
|
debug!(?homedir, "home directory");
|
||||||
|
|
||||||
let mut paths = HashSet::new();
|
let mut paths = HashSet::new();
|
||||||
for path in args.values_of("paths").unwrap_or_default() {
|
for path in args.values_of_os("paths").unwrap_or_default() {
|
||||||
paths.insert(canonicalize(path).into_diagnostic()?);
|
paths.insert(canonicalize(path).into_diagnostic()?);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ pub async fn tagged(args: &ArgMatches) -> Result<Arc<TaggedFilterer>> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let mut filter_files = Vec::new();
|
let mut filter_files = Vec::new();
|
||||||
for path in args.values_of_os("filter-file").unwrap_or_default() {
|
for path in args.values_of_os("filter-files").unwrap_or_default() {
|
||||||
let file = FilterFile(IgnoreFile {
|
let file = FilterFile(IgnoreFile {
|
||||||
applies_in: None,
|
applies_in: None,
|
||||||
applies_to: None,
|
applies_to: None,
|
||||||
|
Loading…
Reference in New Issue
Block a user