Skip to content

Commit

Permalink
make help more parseable if terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
18alantom committed Aug 15, 2024
1 parent 2526d28 commit 87b5f39
Show file tree
Hide file tree
Showing 2 changed files with 371 additions and 93 deletions.
6 changes: 1 addition & 5 deletions app/args.zig
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ fn ConfigIterator(Iterator: type) type {
try setupZsh();
return true;
} else if (eql(arg, "--help")) {
try printHelp();
try help.printHelp();
return true;
} else if (eql(arg, "--version")) {
try printVersion();
Expand All @@ -135,10 +135,6 @@ fn getTime(arg: ?([]const u8)) TimeType {
return .modified;
}

fn printHelp() !void {
_ = try std.io.getStdOut().writer().write(help.help_string);
}

fn printVersion() !void {
_ = try std.io.getStdOut().writer().print("{s}\n", .{version});
}
Expand Down
Loading

0 comments on commit 87b5f39

Please sign in to comment.