Compare commits
No commits in common. "d0ac564ceec4c91b87c682fc2ee1c54bb0a18055" and "1ae88d2182c74be11576c32ed7785c9947bc50f7" have entirely different histories.
d0ac564cee
...
1ae88d2182
@ -10,7 +10,7 @@ settings_map = {
|
||||
|
||||
from os import makedirs
|
||||
|
||||
def error(*args, exitcode=2, **kwargs):
|
||||
def error(*args, exitcode=1, **kwargs):
|
||||
print("\033[31mError: \033[0m", *args, **kwargs)
|
||||
exit(exitcode)
|
||||
|
||||
|
@ -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="directory in which the subdirectories from a config are created")
|
||||
parser.add_argument("-i", "--sort-dir", action="store", help="the directory where the folders from the config will be 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(args.sort_dir)
|
||||
config = confman.present_config_selection()
|
||||
|
||||
sorter = Sorter(wd, config)
|
||||
sorter.get_images()
|
||||
|
Loading…
Reference in New Issue
Block a user