Add --no-colors options to the help templates, add missing --no-colors to the uninstall.

This commit is contained in:
André Cruz
2012-10-15 01:43:30 +01:00
parent a403585e1e
commit c589625b01
10 changed files with 30 additions and 1 deletions

View File

@@ -74,6 +74,9 @@ module.exports = function (names, options) {
module.exports.line = function (argv) {
var options = nopt(optionTypes, shorthand, argv);
if (options.colors != null) template.showColors(options.colors);
if (options.help) return help('uninstall');
var names = options.argv.remain.slice(1);

View File

@@ -3,6 +3,10 @@ Usage:
{{#cyan}}bower{{/cyan}} info {{#grey}}<pkg>{{/grey}}
Options:
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Description:
Version info and description of a particular package.

View File

@@ -10,6 +10,7 @@ Options:
{{#yellow}}--save{{/yellow}} - adds a dependency entry to a project's {{json}}
{{#yellow}}--force{{/yellow}} - force fetching remote resources even if a local copy exists on disk
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Can specify one or more:

View File

@@ -9,7 +9,7 @@ Options:
{{#yellow}}--map{{/yellow}} - Generates a deep dependency JSON source mapping
{{#yellow}}--paths{{/yellow}} - Generates a simple JSON source mapping
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Description:

View File

@@ -3,6 +3,10 @@ Usage:
{{#cyan}}bower{{/cyan}} lookup {{#grey}}<package>{{/grey}}
Options:
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Description:
Looks up a package url by name

View File

@@ -3,6 +3,10 @@ Usage:
{{#cyan}}bower{{/cyan}} register {{#cyan}}<name>{{/cyan}} {{#grey}}<url>{{/grey}}
Options:
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Description:
Register a package.

View File

@@ -4,6 +4,10 @@ Usage:
{{#cyan}}bower{{/cyan}} search
{{#cyan}}bower{{/cyan}} search {{#grey}}<name>{{/grey}}
Options:
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Description:
Finds all packages or a specific package.

View File

@@ -6,6 +6,7 @@ Usage:
Options:
{{#yellow}}--save{{/yellow}} - adds a dependency entry to a project's {{json}}
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Can specify one or more:

View File

@@ -4,6 +4,10 @@ Usage:
{{#cyan}}bower{{/cyan}} update
{{#cyan}}bower{{/cyan}} update {{#grey}}<package>{{/grey}}
Options:
{{#yellow}}--no-colors{{/yellow}} - do not print colors
Description:
Refreshes a package install

View File

@@ -3,6 +3,10 @@ Usage:
{{#cyan}}bower{{/cyan}} <command> {{#grey}}<options>{{/grey}}
Options:
{{#yellow}}--no-colors{{/yellow}} - do not print colors (available in all commands)
Commands:
{{commands}}