From c435d59179bfbeb500309d80989ca7f45edb51a2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 10 Mar 2023 22:19:16 +0100 Subject: [PATCH] Cope with the fact that some of our commands output --help to stdout, some to stderr. --- doc/manual/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('') print('') 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 -- 2.30.2