diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-29 14:55:44 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-06-29 14:55:44 +0300 |
commit | 996aba4f0989de1fa2b8cf13ef482bf228bd410e (patch) | |
tree | 705c34fcdf9ccf3962c935834504134be7f8948e /bdep/sync.cxx | |
parent | d23063b1406c9bd1b688c6b658ce22c675173a2b (diff) |
Add --sys-sudo options for sync and init commands
Diffstat (limited to 'bdep/sync.cxx')
-rw-r--r-- | bdep/sync.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bdep/sync.cxx b/bdep/sync.cxx index 4978169..45ee46c 100644 --- a/bdep/sync.cxx +++ b/bdep/sync.cxx @@ -1714,6 +1714,9 @@ namespace bdep (so.no_fetch ? "--sys-no-fetch" : nullptr), (so.no_stub ? "--sys-no-stub" : nullptr), (so.yes ? "--sys-yes" : nullptr), + (so.sudo + ? cstrings ({"--sys-sudo", so.sudo->c_str ()}) + : cstrings ()), args)); // Shouldn't throw, unless something is severely damaged. |