verbs: add a section to list verbs similarly to options

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2026-03-20 17:26:52 +01:00
parent cc07d8ab47
commit d03089ff4f
3 changed files with 101 additions and 12 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ static int systemctl_main(int argc, char *argv[]) {
{}
};
const Verb *verb = verbs_find_verb(argv[optind], verbs);
const Verb *verb = verbs_find_verb(argv[optind], verbs, verbs + ELEMENTSOF(verbs) - 1);
if (verb && (verb->flags & VERB_ONLINE_ONLY) && arg_root)
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"Verb '%s' cannot be used with --root= or --image=.",