remove unknown OPTIONS section name. Getopt returns -1.
This commit is contained in:
parent
115a32af83
commit
846fef5834
@ -57,7 +57,7 @@ the output and behavior of the asc scanner device.
|
||||
When
|
||||
.Nm
|
||||
is called with no option only the current settings are reported.
|
||||
.Sh OPTIONS
|
||||
.Pp
|
||||
The following options are available:
|
||||
.Bl -tag -width indent
|
||||
.It Fl s Bq ASC_SRESSW
|
||||
|
@ -85,7 +85,7 @@ main(int argc, char **argv)
|
||||
|
||||
if (argc == 0) usage();
|
||||
|
||||
while( (c = getopt(argc, argv, "sqf:b:r:w:h:t:")) != FAIL)
|
||||
while( (c = getopt(argc, argv, "sqf:b:r:w:h:t:")) != -1)
|
||||
{
|
||||
switch(c) {
|
||||
case 'f': file = optarg; break;
|
||||
|
Loading…
Reference in New Issue
Block a user