Skip to content

Commit 4111a12

Browse files
committed
Make "-r auto" work again
1 parent 7a9296b commit 4111a12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/options.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,9 @@ options_t::options_t(int argc, char *argv[]) : options_t()
488488
enable_multi = true;
489489
break;
490490
case 'r':
491-
input_format = optarg;
491+
if (std::strcmp(optarg, "auto") != 0) {
492+
input_format = optarg;
493+
}
492494
break;
493495
case 'h':
494496
long_usage_bool = true;

0 commit comments

Comments
 (0)