diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index a3e8a438d637..62b8d8bc053b 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -120,11 +120,20 @@ main(int argc, char **argv) printmachine = 0; kernfile = NULL; SLIST_INIT(&includepath); - while ((ch = getopt(argc, argv, "CI:d:gmps:Vx:")) != -1) + while ((ch = getopt(argc, argv, "Cd:gI:mps:Vx:")) != -1) switch (ch) { case 'C': filebased = 1; break; + case 'd': + if (*destdir == '\0') + strlcpy(destdir, optarg, sizeof(destdir)); + else + errx(EXIT_FAILURE, "directory already set"); + break; + case 'g': + debugging++; + break; case 'I': ipath = (struct includepath *) \ calloc(1, sizeof (struct includepath)); @@ -136,15 +145,6 @@ main(int argc, char **argv) case 'm': printmachine = 1; break; - case 'd': - if (*destdir == '\0') - strlcpy(destdir, optarg, sizeof(destdir)); - else - errx(EXIT_FAILURE, "directory already set"); - break; - case 'g': - debugging++; - break; case 'p': profiling++; break;