diff options
| author | lukeflo | 2025-05-26 14:55:21 +0200 |
|---|---|---|
| committer | lukeflo | 2025-05-26 14:55:21 +0200 |
| commit | c0dcbcd18a3fba111885fd0eaf8ef18f71cf693a (patch) | |
| tree | 169a78c55c904ef31d84594fe76d85656fd14523 /src/cliargs.rs | |
| parent | eac547bce389169b867ccdeedc47ba2b8b90511d (diff) | |
| download | bibiman-c0dcbcd18a3fba111885fd0eaf8ef18f71cf693a.tar.gz bibiman-c0dcbcd18a3fba111885fd0eaf8ef18f71cf693a.zip | |
some more doc strings
Diffstat (limited to 'src/cliargs.rs')
| -rw-r--r-- | src/cliargs.rs | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/src/cliargs.rs b/src/cliargs.rs index a9b12fd..c7a0eb1 100644 --- a/src/cliargs.rs +++ b/src/cliargs.rs @@ -56,7 +56,7 @@ impl CLIArgs { Short('v') | Long("version") => args.versionarg = true, Short('c') | Long("config-file") => args.cfg_path = Some(parser.value()?.parse()?), Long("light-terminal") => args.light_theme = true, - Long("merge-pdf-paths") => { + Long("pdf-dir") => { args.pdf_path = Some(parser.value()?.parse()?); } // Value(pos_arg) => parse_files(&mut args, pos_arg), @@ -126,14 +126,16 @@ POSITIONAL ARGS: Both can be passed multiple times FLAGS: - -h, --help Show this help and exit - -v, --version Show the version and exit - -c, --config-file Path to config file used for current session. - Takes precedence over standard config file. - --light-terminal Enable color mode for light terminal background - --merge-pdf-paths Merge PDF files named by citekey at the given path into - the `file` field of the entry matching the citekey - (might not work with citekeys containing special chars)", + -h, --help Show this help and exit + -v, --version Show the version and exit + -c, --config-file=<value> Path to config file used for current session. + Takes precedence over standard config file. + --light-terminal=<value> Enable color mode for light terminal background + --pdf-dir=<value> Use PDF files named by citekey at the given path and its + subdirs as value for the `file` field of the entry matching + the citekey for the current session. + Does not overwrite or change the original file. + (might not work with citekeys containing special chars)", env!("CARGO_PKG_NAME"), env!("CARGO_PKG_VERSION"), ); |
