From: Carl Hetherington Date: Fri, 10 Mar 2023 21:19:16 +0000 (+0100) Subject: Cope with the fact that some of our commands output --help to stdout, some to stderr. X-Git-Tag: v2.16.48~12 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=c435d59179bfbeb500309d80989ca7f45edb51a2 Cope with the fact that some of our commands output --help to stdout, some to stderr. --- 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