std.cli: remove / flag prefix

Signed-off-by: Pablo Alessandro Santos Hugen <phugen@redhat.com>
This commit is contained in:
Pablo Alessandro Santos Hugen 2026-01-23 12:22:19 -03:00 committed by Alex Rønne Petersen
parent 78cbcd21f1
commit 2dd7956105

View file

@ -251,7 +251,6 @@ inline fn flagName(arg: []const u8) ?[]const u8 {
if (mem.startsWith(u8, arg, "--")) return arg[2..];
if (mem.startsWith(u8, arg, "-") or
mem.startsWith(u8, arg, "/") or
mem.startsWith(u8, arg, "+")) return arg[1..];
return null;