Rename search/show --show-broken to --include-old

This commit is contained in:
David Glasser
2014-08-23 15:56:39 -07:00
parent bc8d2e0459
commit 80d271fa24
2 changed files with 9 additions and 9 deletions

View File

@@ -869,7 +869,7 @@ main.registerCommand({
minArgs: 1,
maxArgs: 1,
options: {
"show-broken": {type: Boolean, required: false }
"include-old": {type: Boolean, required: false }
}
}, function (options) {
@@ -878,7 +878,7 @@ main.registerCommand({
// We only show compatible versions unless we know otherwise.
var versionVisible = function (record) {
return options['show-broken'] || !(_.isEqual(record.description,
return options['include-old'] || !(_.isEqual(record.description,
"INCOMPATIBLE WITH METEOR 0.9.0 OR LATER"));
};
@@ -1003,7 +1003,7 @@ main.registerCommand({
maxArgs: 1,
options: {
maintainer: {type: String, required: false },
"show-broken": {type: Boolean, required: false }
"include-old": {type: Boolean, required: false }
}
}, function (options) {
@@ -1031,7 +1031,7 @@ main.registerCommand({
var filterBroken = function (match, isRelease, name) {
// If the package does not match, or it is not a package at all or if we
// don't want to filter anyway, we do not care.
if (!match || isRelease || options["show-broken"])
if (!match || isRelease || options["include-old"])
return match;
var vr;

View File

@@ -474,7 +474,7 @@ debugging the Meteor packaging tools themselves.
>>> search
Search through the package server database.
Usage: meteor search <regex> [--maintainer <username>] [--show-broken]
Usage: meteor search <regex> [--maintainer <username>] [--include-old]
Search through the meteor package&release database for names containing the
specified substring.
@@ -483,11 +483,11 @@ Use --maintainer to filter by authorized maintainers.
By default, meteor search will not show packages that, due to migration issues,
are known to not be compatible with Meteor 0.9.0 and later. If you
want to see those packages anyway, use the --show-broken option.
want to see those packages anyway, use the --include-old option.
Options:
--maintainer filter by authorized maintainer
--show-broken show packages incompatible with Meteor 0.9.0 and later.
--include-old show packages incompatible with Meteor 0.9.0 and later.
>>> show
@@ -501,11 +501,11 @@ version of a package or release.
By default, meteor show will not show versions that, due to migration issues,
are known to not be compatible with Meteor 0.9.0 and later. If you
want to see those versions anyway, use the --show-broken option.
want to see those versions anyway, use the --include-old option.
Options:
--maintainer filter by authorized maintainer
--show-broken show versions incompatible with Meteor 0.9.0 and later.
--include-old show versions incompatible with Meteor 0.9.0 and later.