diff --git a/thin_check.cc b/thin_check.cc index e8eac42..9db11bb 100644 --- a/thin_check.cc +++ b/thin_check.cc @@ -90,5 +90,5 @@ int main(int argc, char **argv) exit(1); } - return check(argv[1], quiet); + return check(argv[optind], quiet); } diff --git a/thin_repair.cc b/thin_repair.cc index 22b8ea1..43c62e4 100644 --- a/thin_repair.cc +++ b/thin_repair.cc @@ -75,5 +75,5 @@ int main(int argc, char **argv) exit(1); } - return check(argv[1]); + return check(argv[optind]); }