creds: use parse_tristate_argument_with_auto() where appropriate

This commit is contained in:
Mike Yuan
2026-03-26 15:55:50 +01:00
parent 82bfcc37e2
commit 1060f82611
+3 -9
View File
@@ -940,15 +940,9 @@ static int parse_argv(int argc, char *argv[]) {
break;
case ARG_NEWLINE:
if (isempty(optarg) || streq(optarg, "auto"))
arg_newline = -1;
else {
r = parse_boolean_argument("--newline=", optarg, NULL);
if (r < 0)
return r;
arg_newline = r;
}
r = parse_tristate_argument_with_auto("--newline=", optarg, &arg_newline);
if (r < 0)
return r;
break;
case 'p':