From 0fc39391cd7b5a5f0b362bed6c21e4c642a0accc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 22 Mar 2013 11:11:02 +0200 Subject: Add --changelog{,-in,-out,-dir} options --- odb/validator.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'odb/validator.cxx') 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 (); -- cgit v1.1