print --help to stdout like other builtins (#5495)

This commit is contained in:
John McKay 2019-01-09 23:07:09 +00:00 committed by Aaron Gyes
parent 4a8db53bcf
commit a6fa237db2

View File

@ -1305,7 +1305,7 @@ int builtin_string(parser_t &parser, io_streams_t &streams, wchar_t **argv) {
}
if (wcscmp(argv[1], L"-h") == 0 || wcscmp(argv[1], L"--help") == 0) {
builtin_print_help(parser, streams, L"string", streams.err);
builtin_print_help(parser, streams, L"string", streams.out);
return STATUS_CMD_OK;
}