From edab35e216bc3839915129e54f98160428634283 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 12 Aug 2019 14:56:03 +0300 Subject: Add support for default options files --- bdep/help.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bdep/help.cxx') diff --git a/bdep/help.cxx b/bdep/help.cxx index cd2c671..e37c65d 100644 --- a/bdep/help.cxx +++ b/bdep/help.cxx @@ -62,4 +62,22 @@ namespace bdep throw failed (); } + + default_options_files + options_files (const char*, const help_options&, const strings&) + { + // bdep.options + // bdep-help.options + + return default_options_files { + {path ("bdep.options"), path ("bdep-help.options")}, + nullopt /* start_dir */}; + } + + help_options + merge_options (const default_options& defs, + const help_options& cmd) + { + return merge_default_options (defs, cmd); + } } -- cgit v1.1