Skip to content

Commit 93bc9d7

Browse files
committed
Allow multiple --extract on command-line per issue #42
1 parent 426fe77 commit 93bc9d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,8 @@ void ParseOptions(int argc, char **argv, ProgramOptions& opt) {
594594
break;
595595
}
596596
case 'x': {
597-
opt.extract_str = optarg;
597+
if (!opt.extract_str.empty()) opt.extract_str += ",";
598+
opt.extract_str += optarg;
598599
break;
599600
}
600601
case 'P': {

0 commit comments

Comments
 (0)