From 39623934c38e12007434aeb4bf6fc0a280b62889 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 17 Apr 2021 20:18:05 -1000 Subject: [PATCH] ;doc: cli: a note about redirecting debug output --- hledger/hledger.m4.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 42a8addf4..c67400f47 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -1178,6 +1178,10 @@ $ hledger print -o foo.txt $ hledger print -o - # write to stdout (the default) ``` +hledger can optionally produce debug output (if enabled with `--debug=N`); +this goes to stderr, and is not affected by `-o/--output-file`. +If you need to capture it, use shell redirects, eg: `hledger bal --debug=3 >file 2>&1`. + ## Output format Some commands (print, register, the balance commands) offer a choice of output format.