fix --sort-dir not respected
This commit is contained in:
parent
2122627fdf
commit
cd541d23e4
@ -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)
|
||||
|
||||
with uz.Canvas() as canvas:
|
||||
sorter = Sorter(wd, canvas, config)
|
||||
|
Loading…
Reference in New Issue
Block a user