From 2360392676efadcd01f5bc7fa7821834cb792bcc Mon Sep 17 00:00:00 2001 From: lukeflo Date: Thu, 28 Nov 2024 12:23:22 +0100 Subject: doc string for parse_files --- src/cliargs.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cliargs.rs b/src/cliargs.rs index b1e10fc..3ac8616 100644 --- a/src/cliargs.rs +++ b/src/cliargs.rs @@ -52,9 +52,10 @@ impl CLIArgs { } } +/// This function maps a vector containing paths to another vector containing paths. +/// But it will walk all entries of the first vec which are directories +/// and put only valid file paths with `.bib` ending to the resulting vec. fn parse_files(args: Vec) -> Vec { - // convert to PathBuf to use methods for testing the path - // let path = PathBuf::from(pos_arg); let mut files: Vec = Vec::new(); // If pos arg is file, just push it to path vec for i in args { -- cgit v1.2.3