Skip to content

Commit 9e707cb

Browse files
committed
-v and -h output to stdout, not stderr (following GNU, and relieves problems with ansipipe on windows)
1 parent 7ab9268 commit 9e707cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pcbasic

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ def main():
3434
prepare_logging()
3535
if config.options['version']:
3636
# in version mode, print version and exit
37-
logging.info(plat.version)
37+
sys.stdout.write(plat.version + '\n')
3838
if config.options['debug']:
3939
debug_details()
4040
elif config.options['help']:
4141
# in help mode, print usage and exit
4242
f = open(os.path.join(plat.info_dir, 'USAGE'))
4343
for line in f:
44-
logging.info(line[:-1])
44+
sys.stdout.write(line)
4545
elif config.options['convert']:
4646
# in converter mode, convert and exit
4747
convert()
@@ -273,9 +273,9 @@ def debug_details():
273273
for module in modules:
274274
try:
275275
__import__(module)
276-
logging.info("%s: available", module)
276+
sys.stdout.write("%s: available\n" % module)
277277
except ImportError:
278-
logging.info("%s: not available", module)
278+
sys.stdout.write("%s: not available\n" % module)
279279

280280
if __name__ == "__main__":
281281
main()

0 commit comments

Comments
 (0)