From 35bed9571166e80903ecfd69eb445a1a8df7a974 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 12 Sep 2013 10:01:47 +0200 Subject: Add options to warn about hard additions and deletions --- odb/option-functions.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'odb/option-functions.cxx') 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 ()) -- cgit v1.1