summaryrefslogtreecommitdiff
path: root/odb/option-functions.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/option-functions.cxx')
-rw-r--r--odb/option-functions.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/odb/option-functions.cxx b/odb/option-functions.cxx
index 6c693c1..d31bb0b 100644
--- a/odb/option-functions.cxx
+++ b/odb/option-functions.cxx
@@ -20,6 +20,14 @@ process_options (options& o)
if (o.generate_schema_only ())
o.generate_schema (true);
+ // If --warn-hard was specified, then set both --warn-hard-{add,delete}.
+ //
+ if (o.warn_hard ())
+ {
+ o.warn_hard_add (true);
+ o.warn_hard_delete (true);
+ }
+
// Set the default schema format depending on the database.
//
if (o.generate_schema () && o.schema_format ()[db].empty ())