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):