mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Call usage() instead of being insolent.
This commit is contained in:
parent
0873506fc0
commit
dfaacec6ff
1 changed files with 4 additions and 5 deletions
|
|
@ -136,14 +136,14 @@ getargs(char *av[])
|
|||
if (*++p || (p = *++av))
|
||||
ip->sepstring = p;
|
||||
else
|
||||
errx(1, "need string after -%s", c);
|
||||
usage();
|
||||
S = (*c == 'S' ? 1 : 0);
|
||||
break;
|
||||
case 't':
|
||||
if (*++p || (p = *++av))
|
||||
ip->eol = *p;
|
||||
else
|
||||
errx(1, "need character after -%s", c);
|
||||
usage();
|
||||
T = (*c == 'T' ? 1 : 0);
|
||||
nofinalnl = 1;
|
||||
break;
|
||||
|
|
@ -166,11 +166,10 @@ getargs(char *av[])
|
|||
ip->format = fmtp;
|
||||
}
|
||||
else
|
||||
errx(1, "need string after -%s", c);
|
||||
usage();
|
||||
break;
|
||||
default:
|
||||
errx(1, "what do you mean by -%s?", c);
|
||||
break;
|
||||
usage();
|
||||
}
|
||||
}
|
||||
ip->fp = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue