Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/compiler/resinator/cli.zig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub const usage_string_after_command_name =
\\This is necessary when the input path begins with a forward slash.
\\
\\Supported option prefixes are /, -, and --, so e.g. /h, -h, and --h all work.
\\Drop-in compatible with the Microsoft Resource Compiler.
\\
\\Supported Win32 RC Options:
\\ /?, /h Print this help and exit.
Expand Down
3 changes: 2 additions & 1 deletion lib/compiler/resinator/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ pub fn main() !void {
defer options.deinit();

if (options.print_help_and_exit) {
try cli.writeUsage(stderr.writer(), "zig rc");
const stdout = std.io.getStdOut();
try cli.writeUsage(stdout.writer(), "zig rc");
return;
}

Expand Down
Loading