diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-06-15 23:34:56 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-06-17 18:45:28 +0300 |
commit | 064b22135afaf701f7f689ef75136298b9a0d278 (patch) | |
tree | 0f09134db6c125eb33e848c79fadcd893b7b25d6 /bdep/new.cxx | |
parent | d2cc9eb93efbb34f5c88d672e04b126b0c422bb3 (diff) |
Allow specifying pkg-args in bdep-init -A and -C forms
Diffstat (limited to 'bdep/new.cxx')
-rw-r--r-- | bdep/new.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx index 37da2be..9bba9a7 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -1783,6 +1783,10 @@ namespace bdep if (t != type::empty) // prj == pkg pkgs.push_back (package_location {move (pkgn), nullopt, dir_path ()}); + strings cfg_args; + if (cc) + for (; args.more (); cfg_args.push_back (args.next ())) ; + configurations cfgs { cmd_init_config ( o, @@ -1791,12 +1795,11 @@ namespace bdep pkgs, db, ca ? o.config_add () : o.config_create (), - args, + cfg_args, ca, cc)}; - if (!pkgs.empty ()) - cmd_init (o, prj, db, cfgs, pkgs, scan_arguments (args) /* pkg_args */); + cmd_init (o, prj, db, cfgs, pkgs, strings () /* pkg_args */); } return 0; |