Skip to content

Commit

Permalink
Improve help message
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsIrl committed Mar 6, 2024
1 parent 63beb15 commit 7cbabc4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dockerc.zig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn main() !void {
defer res.deinit();

if (res.args.help != 0) {
debug.print("help message\n", .{});
try clap.help(io.getStdErr().writer(), clap.Help, &params, .{});
return;
}

Expand All @@ -73,6 +73,7 @@ pub fn main() !void {
}

if (missing_args) {
debug.print("--help for usage\n", .{});
return;
}

Expand Down

0 comments on commit 7cbabc4

Please sign in to comment.