chiark / gitweb /
machine-id-setup: use path_kill_slashes and modernizations
[elogind.git] / src / machine-id-setup / machine-id-setup-main.c
index a67d436dbd7c40a5f305a8ad535ffe220c0b836d..1c933ce600b3cc0e324a8e4a7c0ec0f4254d66a2 100644 (file)
@@ -37,7 +37,7 @@ static int help(void) {
                "Initialize /etc/machine-id from a random source.\n\n"
                "  -h --help             Show this help\n"
                "     --version          Show package version\n"
-               "     --root             Filesystem root\n",
+               "     --root=ROOT        Filesystem root\n",
                program_invocation_short_name);
 
         return 0;
@@ -87,7 +87,7 @@ static int parse_argv(int argc, char *argv[]) {
         }
 
         if (optind < argc) {
-                help();
+                log_error("Extraneous arguments");
                 return -EINVAL;
         }