Fix new instances of clap being way more strict now (#350)

This commit is contained in:
Félix Saparelli 2022-06-28 12:11:29 +00:00
parent 75784667bc
commit 3aa128c4ee
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ pub async fn dirs(args: &ArgMatches) -> Result<(PathBuf, PathBuf)> {
debug!(?homedir, "home directory");
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()?);
}

View File

@ -21,7 +21,7 @@ pub async fn tagged(args: &ArgMatches) -> Result<Arc<TaggedFilterer>> {
}
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 {
applies_in: None,
applies_to: None,