Skip to content

Commit 5a2d912

Browse files
committed
[General] Allow '-c' or '-p' command line flags with '-i' without '-o'
1 parent 8f045e6 commit 5a2d912

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/classdumpctl/main.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ int main(int argc, char *argv[]) {
460460
[[CDClassModel modelWithClass:NSClassFromString(@"NSObject")] semanticLinesWithOptions:generationOptions];
461461
[[CDProtocolModel modelWithProtocol:NSProtocolFromString(@"NSObject")] semanticLinesWithOptions:generationOptions];
462462

463-
if (hasImageRequests && (outputDir == nil)) {
463+
if (hasImageRequests && !hasSpecificDumpRequests && (outputDir == nil)) {
464464
fprintf(stderr, "-o/--output required to dump all classes in an image\n");
465465
return 1;
466466
}

0 commit comments

Comments
 (0)