tree-wide: unify some code that looks for --help in the command line

This commit is contained in:
Lennart Poettering
2022-03-31 11:44:46 +02:00
parent 9959d78280
commit 542bb9be7c
6 changed files with 36 additions and 12 deletions
+2 -1
View File
@@ -34,6 +34,7 @@
#include "path-util.h"
#include "pkcs11-util.h"
#include "pretty-print.h"
#include "process-util.h"
#include "random-util.h"
#include "string-util.h"
#include "strv.h"
@@ -1719,7 +1720,7 @@ static int run(int argc, char *argv[]) {
const char *verb;
int r;
if (argc <= 1)
if (argv_looks_like_help(argc, argv))
return help();
if (argc < 3)