aboutsummaryrefslogtreecommitdiff
path: root/bdep/help.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-08-12 14:56:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-08-13 16:52:16 +0300
commitedab35e216bc3839915129e54f98160428634283 (patch)
tree51c1ae471e39aca817038f16d33cc25be4998369 /bdep/help.cxx
parent54c937f78562fc6a5d2ea01c8747c62ccea980cb (diff)
Add support for default options files
Diffstat (limited to 'bdep/help.cxx')
-rw-r--r--bdep/help.cxx18
1 files changed, 18 insertions, 0 deletions
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<help_options>& defs,
+ const help_options& cmd)
+ {
+ return merge_default_options (defs, cmd);
+ }
}