Skip to content

Commit

Permalink
support --header flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 25, 2015
1 parent df9fd6b commit 15d5d8a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
5 changes: 3 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ function showHelp() {
-d, --delay <seconds> Delay screenshot capture
--filename <template> Custom filename
--selector <element> Capture DOM element
--hide <element> Hide DOM element, can be set multiple times
--cookie <cookie> Browser cookie, can be set multiple times
--hide <element> Hide DOM element (Can be set multiple times)
--cookie <cookie> Browser cookie (Can be set multiple times)
--header <string> Custom HTTP request header (Can be set multiple times)
--username <username> Username for HTTP auth
--password <password> Password for HTTP auth
--scale <number> Scale webpage
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"log-symbols": "^1.0.0",
"multiline": "^1.0.0",
"object-assign": "^3.0.0",
"pageres": "^2.0.0",
"pageres": "^2.1.0",
"subarg": "^1.0.0",
"sudo-block": "^1.0.0",
"update-notifier": "^0.5.0"
Expand Down
14 changes: 11 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ $ pageres yeoman.io 1366x768 --selector '.page-header'

##### `--hide <element>`

Hide DOM element, can be set multiple times.
Hide DOM element. Can be set multiple times.

```
$ pageres yeoman.io 1366x768 --hide '.page-header'
Expand All @@ -148,10 +148,18 @@ $ pageres [ yeoman.io 1366x768 --no-crop ] todomvc.com 1024x768 --crop

##### `--cookie <cookie>`

Browser cookie, can be set multiple times.
Browser cookie. Can be set multiple times.

```
$ pageres yeoman.io 1024x768 --cookie 'foo=bar'
$ pageres yeoman.io --cookie 'foo=bar'
```

##### `--header <header>`

Custom HTTP request header. Can be set multiple times.

```
$ pageres yeoman.io --header 'Cache-Control: no-cache'
```

##### `--username <username>`
Expand Down

0 comments on commit 15d5d8a

Please sign in to comment.