fix getopt optarg
This commit is contained in:
parent
572e28c32f
commit
a50c52566d
2
main.cpp
2
main.cpp
@ -29,7 +29,7 @@ int main(int argc, char **argv)
|
|||||||
int tcount = 0;
|
int tcount = 0;
|
||||||
int maxiter = 0;
|
int maxiter = 0;
|
||||||
|
|
||||||
while ((c = getopt(argc, argv, "t::i::")) != -1) {
|
while ((c = getopt(argc, argv, "t:i:")) != -1) {
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 't':
|
case 't':
|
||||||
targ = optarg;
|
targ = optarg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user