From 39c860a1570cb722305cf443184302bc830b003b Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Fri, 19 Apr 2024 13:11:37 -0600 Subject: [PATCH] add cli arg for sort all configs --- cyberdrop_dl/managers/args_manager.py | 5 +++++ cyberdrop_dl/utils/args/args.py | 1 + 2 files changed, 6 insertions(+) diff --git a/cyberdrop_dl/managers/args_manager.py b/cyberdrop_dl/managers/args_manager.py index 737791eec..8812bdf73 100644 --- a/cyberdrop_dl/managers/args_manager.py +++ b/cyberdrop_dl/managers/args_manager.py @@ -64,6 +64,11 @@ def startup(self) -> None: if self.parsed_args['download_all_configs']: self.all_configs = True self.immediate_download = True + + if self.parsed_args['sort_all_configs']: + self.sort_all_configs = True + self.all_configs = True + self.immediate_download = True if self.parsed_args['retry_failed']: self.retry = True diff --git a/cyberdrop_dl/utils/args/args.py b/cyberdrop_dl/utils/args/args.py index 31be06879..968e488d9 100644 --- a/cyberdrop_dl/utils/args/args.py +++ b/cyberdrop_dl/utils/args/args.py @@ -15,6 +15,7 @@ def parse_args() -> argparse.Namespace: general.add_argument("--no-ui", action="store_true", help="Disables the UI/Progress view entirely", default=False) general.add_argument("--download", action="store_true", help="Skip the UI and go straight to downloading", default=False) general.add_argument("--download-all-configs", action="store_true", help="Skip the UI and go straight to downloading (runs all configs sequentially)", default=False) + general.add_argument("--sort-all-configs", action="store_true", help="Sort all configs sequentially", default=False) general.add_argument("--retry-failed", action="store_true", help="retry failed downloads", default=False) general.add_argument("--vi-mode", action="store_true", help="enable VIM keybindings for UI", default=None)