summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-03-10 22:19:16 +0100
committerCarl Hetherington <cth@carlh.net>2023-03-10 22:19:16 +0100
commitc435d59179bfbeb500309d80989ca7f45edb51a2 (patch)
treeca2a00f92fd74c622a3bc73750bff9a030e9f5ff
parent3c0eab416f67c293fb61069ce285e185d9c349b3 (diff)
Cope with the fact that some of our commands output --help to stdout, some to stderr.
-rw-r--r--doc/manual/cli.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/manual/cli.py b/doc/manual/cli.py
index 3a2493b4d..88e75b0da 100644
--- a/doc/manual/cli.py
+++ b/doc/manual/cli.py
@@ -7,7 +7,7 @@ print('<para>')
print('<itemizedlist>')
os.chdir('../..')
-for l in subprocess.run(['run/%s' % sys.argv[1], '--help'], stderr=subprocess.PIPE).stderr.splitlines():
+for l in subprocess.run(['run/%s' % sys.argv[1], '--help'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).stdout.splitlines():
l = l.strip().decode('UTF-8')
if not l.startswith('-'):
continue