aboutsummaryrefslogtreecommitdiff
path: root/libbutl/default-options.mxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-12-07 22:13:06 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-12-08 18:00:41 +0300
commit871273b374f75306a6c79c4ec067f2e4ce338172 (patch)
treed16336ce5aa46a5ee6ab0b51323d625bcbd13caa /libbutl/default-options.mxx
parent819741778f6ad75b5b104d2107a8fd9e30d4d4e5 (diff)
Add proper support for option files option to load_default_options()
Diffstat (limited to 'libbutl/default-options.mxx')
-rw-r--r--libbutl/default-options.mxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/libbutl/default-options.mxx b/libbutl/default-options.mxx
index aeb246d..11f7bb2 100644
--- a/libbutl/default-options.mxx
+++ b/libbutl/default-options.mxx
@@ -61,10 +61,12 @@ LIBBUTL_MODEXPORT namespace butl
using default_options = small_vector<default_options_entry<O>, 4>;
// Search for and load the specified list of options files in the specified
- // directories returning a vector of option class instances (O). If args is
- // false, only options are allowed and are parsed using scanner S in the
- // U::fail mode. If args is true, then both options and arguments are
- // allowed in any order with options parsed in the U::stop mode.
+ // directories returning a vector of option class instances (O). Read
+ // additional options from files referenced by the specified option
+ // (normally --options-file). If args is false, only options are allowed and
+ // are parsed using scanner S in the U::fail mode. If args is true, then
+ // both options and arguments are allowed in any order with options parsed
+ // in the U::stop mode.
//
// Pass each default options file path to the specified function prior to
// load (can be used for tracing, etc). The function signature is:
@@ -112,6 +114,7 @@ LIBBUTL_MODEXPORT namespace butl
const optional<dir_path>& extra_dir,
const default_options_files&,
F&&,
+ const std::string& option,
bool args = false);
// Merge the default options/arguments and the command line