From fc0670c1905bd2f0c5121654e10f1287fce4fcf9 Mon Sep 17 00:00:00 2001 From: Corbacho Date: Mon, 12 Jan 2015 21:30:16 +0800 Subject: [PATCH] Close #42 PR: Update help command and README to be more accurate. --- README.md | 7 +++---- cli.js | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 95899d7..48ad547 100644 --- a/README.md +++ b/README.md @@ -108,10 +108,10 @@ $ npm install --global psi $ psi --help Usage - a11y + psi Example - a11y todomvc.com + psi todomvc.com --strategy=mobile Options --key Google API Key. By default the free tier is used. @@ -119,7 +119,6 @@ $ psi --help --format Output format: cli|json|tap --locale Locale results should be generated in. --threshold Threshold score to pass the PageSpeed test. - --prettyprint Pretty print the result. ``` @@ -135,4 +134,4 @@ For testing local project, we recommend using [ngrok](http://www.jamescryer.com/ ## License Apache-2.0 -Copyright 2014 Google Inc +Copyright 2015 Google Inc diff --git a/cli.js b/cli.js index dec2ad7..4d7bc13 100755 --- a/cli.js +++ b/cli.js @@ -7,18 +7,17 @@ var psi = require('./'); var cli = meow({ help: [ 'Usage', - ' a11y ', + ' psi ', '', 'Example', - ' a11y todomvc.com', + ' psi todomvc.com --strategy=mobile', '', 'Options', ' --key Google API Key. By default the free tier is used.', ' --strategy Strategy to use when analyzing the page: mobile|desktop', ' --format Output format: cli|json|tap', ' --locale Locale results should be generated in.', - ' --threshold Threshold score to pass the PageSpeed test.', - ' --prettyprint Pretty print the result.' + ' --threshold Threshold score to pass the PageSpeed test.' ].join('\n') });