Skip to content

Commit 00a8b42

Browse files
committed
Better --help for #173
1 parent 78bf24b commit 00a8b42

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

docs/javascript.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ Usage: shot-scraper javascript [OPTIONS] URL [JAVASCRIPT]
226226
If a JavaScript error occurs an exit code of 1 will be returned.
227227
228228
Options:
229-
-i, --input FILENAME Read input JavaScript from this file
229+
-i, --input TEXT Read input JavaScript from this file or use
230+
gh:username/script to load from
231+
github.com/username/shot-scraper-
232+
scripts/script.js
230233
-a, --auth FILENAME Path to JSON authentication context file
231234
-o, --output FILENAME Save output JSON to this file
232235
-r, --raw Output JSON strings as raw text

shot_scraper/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,10 @@ def har(
807807
"-i",
808808
"--input",
809809
default="-",
810-
help="Read input JavaScript from this file or a GitHub repo with gh: prefix",
810+
help=(
811+
"Read input JavaScript from this file or use gh:username/script "
812+
"to load from github.com/username/shot-scraper-scripts/script.js"
813+
),
811814
)
812815
@click.option(
813816
"-a",

0 commit comments

Comments
 (0)