From 80d271fa24c58e688fe5824bbe664520a7db8dc6 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Sat, 23 Aug 2014 15:56:39 -0700 Subject: [PATCH] Rename search/show --show-broken to --include-old --- tools/commands-packages.js | 8 ++++---- tools/help.txt | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tools/commands-packages.js b/tools/commands-packages.js index b7ec14d665..f0f0d2edd2 100644 --- a/tools/commands-packages.js +++ b/tools/commands-packages.js @@ -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; diff --git a/tools/help.txt b/tools/help.txt index 6d364d9da9..9160726e29 100644 --- a/tools/help.txt +++ b/tools/help.txt @@ -474,7 +474,7 @@ debugging the Meteor packaging tools themselves. >>> search Search through the package server database. -Usage: meteor search [--maintainer ] [--show-broken] +Usage: meteor search [--maintainer ] [--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.