From 0bfb5ee41ffbbae9f3e9133ad53cb41eec45f3d4 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Sun, 8 Jun 2025 21:00:42 +0200 Subject: Fix: change option name from `pdf-dir` to `pdf-path` to match config name --- src/cliargs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cliargs.rs b/src/cliargs.rs index 04886d1..114b15a 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("pdf-dir") => { + Long("pdf-path") => { args.pdf_path = Some(parser.value()?.parse()?); } // Value(pos_arg) => parse_files(&mut args, pos_arg), @@ -131,7 +131,7 @@ FLAGS: -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 - --pdf-dir= Use PDF files named by citekey at the given path and its + --pdf-path= 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. -- cgit v1.2.3