diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 31a36d4..32b5f1e 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -2128,10 +2128,10 @@ this() @safe pure nothrow { this.name = "search"; - this.argumentsPattern = ""; + this.argumentsPattern = ""; this.description = "Search for available packages."; this.helpText = [ - "Search all specified DUB registries for packages matching query." + "Search all specified providers for matching packages." ]; } override void prepare(scope CommandArgs args) {} diff --git a/source/dub/dub.d b/source/dub/dub.d index 6533592..2900e3e 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -1014,17 +1014,20 @@ name of the package supplier and the second entry is the list of matched packages. + Params: + name = The name of the package to search for + See_Also: `PackageSupplier.searchPackages` */ - auto searchPackages(string query) + auto searchPackages(string name) { import std.typecons : Tuple, tuple; Tuple!(string, PackageSupplier.SearchResult[])[] results; foreach (ps; this.m_packageSuppliers) { try - results ~= tuple(ps.description, ps.searchPackages(query)); + results ~= tuple(ps.description, ps.searchPackages(name)); catch (Exception e) { - logWarn("Searching %s for '%s' failed: %s", ps.description, query, e.msg); + logWarn("Searching %s for '%s' failed: %s", ps.description, name, e.msg); } } return results.filter!(tup => tup[1].length);