diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 15:05:13 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-08-16 15:05:13 +0300 |
commit | ffdf220f64c7362bf06f8d43aa9820ed4634fdbb (patch) | |
tree | 55d4cca954a14f5248abeea08fbc8d8db3d01ac7 /bdep | |
parent | 9ee8453f2056bbc2b1767324dec805bf80707a37 (diff) |
Add --no-default-options common option
Diffstat (limited to 'bdep')
-rw-r--r-- | bdep/bdep.cxx | 3 | ||||
-rw-r--r-- | bdep/common.cli | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bdep/bdep.cxx b/bdep/bdep.cxx index 66431e9..7e6435f 100644 --- a/bdep/bdep.cxx +++ b/bdep/bdep.cxx @@ -212,10 +212,11 @@ init (const common_options& co, : o.V () ? 3 : o.v () ? 2 : o.quiet () ? 0 : 1; }; - // Handle default option files. + // Handle default options files. // // Note: don't need to use group_scaner (no arguments in options files). // + if (!o.no_default_options ()) // Command line option. try { o = merge_options ( diff --git a/bdep/common.cli b/bdep/common.cli index d6d2273..c08d873 100644 --- a/bdep/common.cli +++ b/bdep/common.cli @@ -212,5 +212,10 @@ namespace bdep the shell escaping and quoting is not required. Repeat this option to specify more than one options file." } + + bool --no-default-options + { + "Don't load default options files." + } }; } |