aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-22 11:11:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:44 +0200
commit0fc39391cd7b5a5f0b362bed6c21e4c642a0accc (patch)
tree193646c134e9e0fafd96bf20266923800e0a7a51 /odb/validator.cxx
parent367c524af8ecfe066991bfaa8489b230f6e59446 (diff)
Add --changelog{,-in,-out,-dir} options
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r--odb/validator.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx
index 77ad874..57cca4a 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -994,6 +994,15 @@ validate (options const& ops,
valid = false;
}
+ // Changelog options.
+ //
+ if (ops.changelog_in_specified () != ops.changelog_out_specified ())
+ {
+ cerr << "error: both --changelog-in and --changelog-out must be " <<
+ "specified" << endl;
+ valid = false;
+ }
+
if (!valid)
throw failed ();