Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Fixed argv in 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 10, 2017
1 parent 860ab83 commit 4b85e28
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 @@ -15,9 +15,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 4b85e28

Please sign in to comment.