Commit 63fe5e30 authored by Mike Hibler's avatar Mike Hibler
Browse files

Add -M option to set maximum sector range.

In cases where code does not compute it. This is only useful
for some assertion checking, so the option may not stick around.
parent d92dbc01
...@@ -599,7 +599,7 @@ main(int argc, char *argv[]) ...@@ -599,7 +599,7 @@ main(int argc, char *argv[])
#ifdef NOTHREADS #ifdef NOTHREADS
nothreads = 1; nothreads = 1;
#endif #endif
while ((ch = getopt(argc, argv, "vdhs:zp:oOnFD:W:Cr:Na:ck:eu:fI")) != -1) while ((ch = getopt(argc, argv, "vdhs:zp:oOnFD:W:Cr:Na:ck:eu:fIM:")) != -1)
switch(ch) { switch(ch) {
#ifdef FAKEFRISBEE #ifdef FAKEFRISBEE
case 'F': case 'F':
...@@ -727,7 +727,10 @@ main(int argc, char *argv[]) ...@@ -727,7 +727,10 @@ main(int argc, char *argv[])
case 'I': case 'I':
ignoreskips++; ignoreskips++;
break; break;
/* set maxsector for error checking */
case 'M':
outputmaxsec = strtoul(optarg, NULL, 0);
break;
case 'h': case 'h':
case '?': case '?':
default: default:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment