Runtime
-------
-[-n] <n>
+-n <n>
terminate after <n> frames
-t <t>
terminate after <t> milliseconds
-[-n] <n> -t <t>
- terminate after n frames, assume <t> milliseconds pass each frame
+if both n and t are given, terminate after n frames and
+assume <t> milliseconds pass each frame
Application
-----------
}
}
}
- } else if (isdigit(arg[0])) {
- // positional number interpreted as -n
- n = strtoul(arg, nullptr, 10);
} else {
cerr << "unable to interpret argument "
<< i << " (" << arg << ")" << endl;