Skip to content

Commit

Permalink
Fixed get-schema after changes from facebook#2913
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Portela committed Aug 29, 2017
1 parent 4c08656 commit 80208b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-scripts/scripts/get-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function isURL(str) {
return str.length < 2083 && url.test(str)
}

const url = process.argv[2];
const url = process.argv[3];

const saveJson = process.argv[3] === 'json';
const saveJson = process.argv[4] === 'json';

if (!url) {
console.log("Usage: get-schema " + chalk.green("url"));
Expand Down

0 comments on commit 80208b4

Please sign in to comment.