aboutsummaryrefslogtreecommitdiff
path: root/odb/option-functions.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-09-12 14:28:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-09-12 14:28:03 +0200
commitc0931400a1c5f02cf145c90fd7e34216836efd88 (patch)
tree5e13c5864e5f3c944a316f9189eb87976c8908c0 /odb/option-functions.cxx
parentf01ad68661d62af62087b7b1ae29628f028e9eaa (diff)
Implement --output-name, --generate-schema-only, and --at-once options
Diffstat (limited to 'odb/option-functions.cxx')
-rw-r--r--odb/option-functions.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/odb/option-functions.cxx b/odb/option-functions.cxx
index 6d6f948..6b7442e 100644
--- a/odb/option-functions.cxx
+++ b/odb/option-functions.cxx
@@ -11,6 +11,12 @@ using namespace std;
void
process_options (options& o)
{
+ // If --generate-schema-only was specified, then set --generate-schema
+ // as well.
+ //
+ if (o.generate_schema_only ())
+ o.generate_schema (true);
+
// Set the default schema format depending on the database.
//
if (o.generate_schema () && o.schema_format ().empty ())