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

Commit

Permalink
docs: Add usage example for --port (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored Jul 27, 2020
1 parent a6cb308 commit cdae281
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ by re-implementing `node debug` against the new protocol.
```
Usage: node-inspect script.js
node-inspect <host>:<port>
node-inspect --port=<port>
```

#### References
Expand Down
1 change: 1 addition & 0 deletions lib/_inspect.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ function startInspect(argv = process.argv.slice(2),

console.error(`Usage: ${invokedAs} script.js`);
console.error(` ${invokedAs} <host>:<port>`);
console.error(` ${invokedAs} --port=<port>`);
console.error(` ${invokedAs} -p <pid>`);
process.exit(1);
}
Expand Down

0 comments on commit cdae281

Please sign in to comment.