Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
add cli arg for sort all configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Apr 19, 2024
1 parent 8e31964 commit 39c860a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cyberdrop_dl/managers/args_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions cyberdrop_dl/utils/args/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 39c860a

Please sign in to comment.