Skip to content

Bulk asynchronous downloader for multiple file hosts

refactor: add `--output-folder` to deprecated args (#402)

NTFSvolume0e814dd631fb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 16c90190d..f77b84690 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
> 3. Removed `--sort-cdl-only` option
> 4. The following arguments are deprecated and will be removed in a future version:
+> - `--output-folder`
> - `--download-all-configs`
> - `--sort-all-configs`
> - `--sort-all-downloads`
diff --git a/cyberdrop_dl/utils/args.py b/cyberdrop_dl/utils/args.py
index cfe5a0d95..0c52f8753 100644
--- a/cyberdrop_dl/utils/args.py
+++ b/cyberdrop_dl/utils/args.py
@@ -65,6 +65,10 @@ class CommandLineOnlyArgs(BaseModel):
class DeprecatedArgs(BaseModel):
+ output_folder: Path | None = Field(
+ None,
+ deprecated="'--output-folder' is deprecated and will be removed in the future. Use '--download-folder'",
+ )
download_all_configs: bool = Field(
False,
description="Skip the UI and go straight to downloading (runs all configs sequentially)",
@@ -157,6 +161,10 @@ class ParsedArgs(AliasModel):
self.config_settings.sorting.sort_downloads = True
self.cli_only_args.config = "ALL"
+ if self.deprecated_args.output_folder:
+ add_warning_msg_from("output_folder")
+ self.config_settings.files.download_folder = self.deprecated_args.output_folder
+
if self.deprecated_args.download_all_configs:
add_warning_msg_from("download_all_configs")
self.cli_only_args.download = True