mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
shutdown: fix option sorting
A last minute change moved this from -W to -q; fix the sorting in a few
places to reflect that.
Fixes: 6c7ec630c2
("shutdown: add a -q(uiet) flag to suppress [...]")
Sponsored by: Klara, Inc.
This commit is contained in:
parent
6c7ec630c2
commit
d349bd3533
@ -133,7 +133,7 @@ main(int argc, char **argv)
|
||||
goto poweroff;
|
||||
}
|
||||
|
||||
while ((ch = getopt(argc, argv, "-chknoprq")) != -1)
|
||||
while ((ch = getopt(argc, argv, "-chknopqr")) != -1)
|
||||
switch (ch) {
|
||||
case '-':
|
||||
readstdin = 1;
|
||||
@ -156,12 +156,12 @@ main(int argc, char **argv)
|
||||
case 'p':
|
||||
dopower = 1;
|
||||
break;
|
||||
case 'r':
|
||||
doreboot = 1;
|
||||
break;
|
||||
case 'q':
|
||||
dowarn = false;
|
||||
break;
|
||||
case 'r':
|
||||
doreboot = 1;
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
usage((char *)NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user