Use strings.partition instead of raw slicing

Co-authored-by: Laytan <laytanlaats@hotmail.com>
This commit is contained in:
Harold Brenes
2026-02-11 14:15:34 -05:00
committed by GitHub
parent 3b8cb7fc61
commit 2899d09003

View File

@@ -207,7 +207,7 @@ parse_cli_options :: proc(argv: []string, opts: ^Options, stdout, stderr: io.Wri
for arg in argv {
if strings.starts_with(arg, "-tests:") {
tests := arg[strings.index(arg, ":")+1:]
_, _, tests := strings.partition(arg, ":")
if len(tests) < 1 {
fmt.wprintln(stderr, "No test names specified for '-tests:'")
os.exit(-1)