diff options
| author | lukeflo | 2024-11-28 12:23:22 +0100 |
|---|---|---|
| committer | lukeflo | 2024-11-28 12:23:22 +0100 |
| commit | 2360392676efadcd01f5bc7fa7821834cb792bcc (patch) | |
| tree | a92848cb1d48c95e8deca18138b931b1bed94c60 /src/cliargs.rs | |
| parent | 15954dd6cfd8fea363e393717731cfce9c0e225c (diff) | |
| download | bibiman-2360392676efadcd01f5bc7fa7821834cb792bcc.tar.gz bibiman-2360392676efadcd01f5bc7fa7821834cb792bcc.zip | |
doc string for parse_files
Diffstat (limited to 'src/cliargs.rs')
| -rw-r--r-- | src/cliargs.rs | 5 |
1 files 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<PathBuf>) -> Vec<PathBuf> { - // convert to PathBuf to use methods for testing the path - // let path = PathBuf::from(pos_arg); let mut files: Vec<PathBuf> = Vec::new(); // If pos arg is file, just push it to path vec for i in args { |
