static int shutdown_help(void) {
- printf("%s [options] [IGNORED] [WALL...]\n\n"
+ printf("%s [options] [now] [WALL...]\n\n"
"Shut down the system.\n\n"
" --help Show this help\n"
" -H --halt Halt the machine\n"
}
}
+ if (argc > optind && !streq(argv[optind], "now")) {
+ log_error("Expected 'now' argument.");
+ return -EINVAL;
+ }
+
/* We ignore the time argument */
if (argc > optind + 1)
arg_wall = argv + optind + 1;