Skip to content

Commit

Permalink
🐛 Apparently the syntax isn't || here
Browse files Browse the repository at this point in the history
  • Loading branch information
segersniels committed Mar 29, 2024
1 parent 9fe22f1 commit d1f7609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/cli/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ pub fn main() !void {

// Skip the first argument (program name) and start processing from the second
for (args[1..]) |arg| {
if (std.mem.eql(u8, arg, "--help") || std.mem.eql(u8, arg, "-h")) {
if (std.mem.eql(u8, arg, "--help") or std.mem.eql(u8, arg, "-h")) {
try printHelp();
return;
} else if (std.mem.eql(u8, arg, "--version") || std.mem.eql(u8, arg, "-v")) {
} else if (std.mem.eql(u8, arg, "--version") or std.mem.eql(u8, arg, "-v")) {
try printVersion();
return;
} else {
Expand Down

0 comments on commit d1f7609

Please sign in to comment.