From eb0a38b087e152d329a4122b7368b608af5f7c54 Mon Sep 17 00:00:00 2001 From: gilesb Date: Mon, 12 Jan 2026 17:59:59 +0000 Subject: [PATCH] Fix --raw to output raw content to stdout --raw without -o now streams raw content to stdout instead of showing metadata Co-Authored-By: Claude Opus 4.5 --- artdag.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/artdag.py b/artdag.py index 3b42c51..bbc71d7 100755 --- a/artdag.py +++ b/artdag.py @@ -870,8 +870,8 @@ def view(cid, output, raw): url = f"{get_server()}/cache/{cid}" try: - if output == "-": - # Stream to stdout for piping + if output == "-" or (raw and not output): + # Stream to stdout for piping (--raw without -o also goes to stdout) resp = requests.get(url, stream=True) resp.raise_for_status() for chunk in resp.iter_content(chunk_size=8192):