diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2023-03-06 08:48:59 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2023-03-06 08:48:59 +0200 |
commit | d7014bd5a0bc3c09d175140641d1d8ad95e27559 (patch) | |
tree | 195db0cda3ac8d0e3067223472b6f7a3a5017854 /bpkg/pkg-bindist.cxx | |
parent | c84c3bda276e6b07ab784521de2634376286e76d (diff) |
Change <out-dir> argument to --output-root|-o option
Diffstat (limited to 'bpkg/pkg-bindist.cxx')
-rw-r--r-- | bpkg/pkg-bindist.cxx | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/bpkg/pkg-bindist.cxx b/bpkg/pkg-bindist.cxx index d68f60b..d4f7f1c 100644 --- a/bpkg/pkg-bindist.cxx +++ b/bpkg/pkg-bindist.cxx @@ -209,10 +209,8 @@ namespace bpkg dr << info << "run 'bpkg help pkg-bindist' for more information"; } - // Sort arguments into the output directory, package names, and - // configuration variables. + // Sort arguments into package names and configuration variables. // - dir_path out; vector<package_name> pns; strings vars; { @@ -234,17 +232,6 @@ namespace bpkg if (a.find ('=') != string::npos) vars.push_back (move (trim (a))); - else if (out.empty ()) - { - try - { - out = dir_path (move (a)); - } - catch (const invalid_path& e) - { - fail << "invalid output directory '" << e.path << "'"; - } - } else { try @@ -258,8 +245,8 @@ namespace bpkg } } - if (out.empty () || pns.empty ()) - fail << "output directory or package name argument expected" << + if (pns.empty ()) + fail << "package name argument expected" << info << "run 'bpkg help pkg-bindist' for more information"; } @@ -385,7 +372,7 @@ namespace bpkg // option to specify/override it (along with languages). Note that there // will probably be no way to override type for dependencies. // - paths r (spm->generate (pkgs, deps, vars, pm, type, langs, out, rec)); + paths r (spm->generate (pkgs, deps, vars, pm, type, langs, rec)); if (r.empty ()) return 0; // Assume prepare-only mode or similar. |