From d0ac564ceec4c91b87c682fc2ee1c54bb0a18055 Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Wed, 7 Feb 2024 11:22:43 +0100 Subject: [PATCH] fix --sort-dir not respected --- imgsort/sorter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgsort/sorter.py b/imgsort/sorter.py index d3803c2..8337436 100755 --- a/imgsort/sorter.py +++ b/imgsort/sorter.py @@ -240,7 +240,7 @@ Image Sorter {fullversion} parser = argparse.ArgumentParser("imgsort") parser.add_argument("-c", "--config", action="store", help="name of the config file in ($IMGSORT_CONFIG_DIR > $XDG_CONFIG_HOME/imgsort > ~/.config/imgsort)", default=None) - parser.add_argument("-i", "--sort-dir", action="store", help="the directory where the folders from the config will be created") + parser.add_argument("-i", "--sort-dir", action="store", help="directory in which the subdirectories from a config are created") args = parser.parse_args() wd = getcwd(); @@ -256,7 +256,7 @@ Image Sorter {fullversion} if type(args.config) == str: config = confman.load_config(args.config, args.sort_dir) else: - config = confman.present_config_selection() + config = confman.present_config_selection(args.sort_dir) sorter = Sorter(wd, config) sorter.get_images()