aboutsummaryrefslogtreecommitdiffstats
path: root/ldid.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ldid.cpp')
-rw-r--r--ldid.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ldid.cpp b/ldid.cpp
index 13e34ff..9042d87 100644
--- a/ldid.cpp
+++ b/ldid.cpp
@@ -3460,7 +3460,10 @@ int main(int argc, char *argv[]) {
}
_assert(flag_S || key.empty());
- _assert(flag_S || flag_I == NULL);
+ if (flag_I != NULL && !flag_S) {
+ fprintf(stderr, "ldid: -I requires -S\n");
+ exit(1);
+ }
if (flag_d && !flag_h) {
flag_h = true;