Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Zadoks <nathan@nathan7.eu>2012-12-13 12:58:17 +0400
committerNathan Zadoks <nathan@nathan7.eu>2012-12-13 12:58:17 +0400
commit2915f61cdedba718a06191d33a8c6598be59741c (patch)
tree5143b46854bc27ee6ed8d0ac1af9db79c822909a
parentbd6559fbadcdee862a7cb4d9058c15c0430e0613 (diff)
document view --json, closes #2992
-rw-r--r--doc/cli/view.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/cli/view.md b/doc/cli/view.md
index 5ec9dc0ac..07836a5ef 100644
--- a/doc/cli/view.md
+++ b/doc/cli/view.md
@@ -69,7 +69,9 @@ was required by each matching version of yui3:
If only a single string field for a single version is output, then it
will not be colorized or quoted, so as to enable piping the output to
-another command.
+another command. If the field is an object, it will be output as a JavaScript object literal.
+
+If the --json flag is given, the outputted fields will be JSON.
If the version range matches multiple versions, than each printed value
will be prefixed with the version it applies to.