Skip to content

Commit

Permalink
docs: fix usage help text
Browse files Browse the repository at this point in the history
  • Loading branch information
reykjalin committed Nov 21, 2024
1 parent 4ac2f96 commit db31be6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Positional options:

General options:

-h, --help Print fn help
-v, --version Print fn help
-h, --help Print todui help
-v, --version Print todui version
```

The `storage_folder` positional argument can be used to change where tasks are stored.
Expand Down
6 changes: 3 additions & 3 deletions src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1955,13 +1955,13 @@ pub fn main() !void {
try writer.print("\n", .{});
try writer.print("General options:\n", .{});
try writer.print("\n", .{});
try writer.print(" -h, --help Print fn help\n", .{});
try writer.print(" -v, --version Print fn help\n", .{});
try writer.print(" -h, --help Print todui help\n", .{});
try writer.print(" -v, --version Print todui version\n", .{});
std.process.exit(0);
}
if (args.len > 1 and (std.mem.eql(u8, args[1], "--version") or std.mem.eql(u8, args[1], "-v"))) {
const writer = std.io.getStdOut().writer();
try writer.print("2024.11-dev\n", .{});
try writer.print("2024.11\n", .{});
std.process.exit(0);
}
if (args.len > 1) {
Expand Down

0 comments on commit db31be6

Please sign in to comment.