From 87547c641d711fea6b80e21c79f55687eb098f0a Mon Sep 17 00:00:00 2001 From: Adam Ladachowski Date: Mon, 26 Jan 2026 22:37:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AC=20Commit=20message:=20Update=20202?= =?UTF-8?q?6-01-26=2022:37:16,=201=20files,=203=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📁 Files changed: 1 📝 Lines changed: 3 • tensors.py --- tensors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tensors.py b/tensors.py index 47c1d1a..e2e0268 100644 --- a/tensors.py +++ b/tensors.py @@ -611,7 +611,7 @@ def _resolve_version_id( def cmd_download(args: argparse.Namespace) -> int: """Handle the download subcommand.""" api_key: str | None = args.api_key or load_api_key() - output_dir: Path = args.output.resolve() if args.output else Path.cwd() + output_dir: Path = args.output.resolve() if not output_dir.exists(): console.print(f"[red]Error: Output directory not found: {output_dir}[/red]") @@ -762,6 +762,7 @@ def main() -> int: "--output", "-o", type=Path, + default=Path(), help="Output directory (default: current directory)", ) dl_parser.add_argument(