mirror of
https://git.aramjonghu.nl/AramJonghu/nfi.git
synced 2026-06-06 20:38:24 +02:00
minor improvement
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ pub fn main(init: std.process.Init.Minimal) !void {
|
|||||||
const subcommand = (arg_iter.next()) orelse return;
|
const subcommand = (arg_iter.next()) orelse return;
|
||||||
|
|
||||||
for (sub.subcommands) |cmd| {
|
for (sub.subcommands) |cmd| {
|
||||||
if (std.mem.eql(u8, subcommand, cmd.name)) {
|
if (eql(subcommand, cmd.name)) {
|
||||||
return cmd.handler(&arg_iter);
|
return cmd.handler(&arg_iter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user