systemctl: fix hint when 'systemctl help' is given
Not all verbs require unit names, but that is beside the point. We need a verb here, and help is not a valid verb.
This commit is contained in:
+2
-2
@@ -68,9 +68,9 @@ int dispatch_verb(int argc, char *argv[], const Verb verbs[], void *userdata) {
|
||||
/* At the end of the list? */
|
||||
if (!verbs[i].dispatch) {
|
||||
if (name)
|
||||
log_error("Unknown operation %s.", name);
|
||||
log_error("Unknown command verb %s.", name);
|
||||
else
|
||||
log_error("Requires operation parameter.");
|
||||
log_error("Command verb required.");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user