Skip to content

Commit 10d26f6

Browse files
committed
Update README with new help text
1 parent 0163dab commit 10d26f6

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

README.md

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,25 @@ hq (html query) - commandline HTML processor © Robin Broda, 2018
2828
Usage: build/hq [options] <selector> <mode> [mode argument]
2929
3030
Options:
31-
-h, --help show this text
32-
33-
<selector> selector to match
34-
<mode> processing mode
35-
may be one of { data, text, attr }:
36-
data - return raw html of matching elements
37-
text - return inner text of matching elements
38-
attr - return attribute value X of matching elements
39-
[mode argument] - attribute to return
31+
-h, --help
32+
show this text
33+
-f, --file
34+
file to read (defaults to stdin)
35+
36+
<selector>
37+
CSS selector to match against
38+
<mode>
39+
processing mode
40+
may be one of { data, text, attr }:
41+
data - return raw html of matching elements
42+
text - return inner text of matching elements
43+
attr - return attribute value of matching elements
44+
<mode argument: attr>
45+
attribute to return
46+
47+
Examples:
48+
curl -sSL https://example.com | build/hq a data
49+
curl -sSL https://example.com | build/hq a attr href
4050
```
4151

4252
Example usage:

0 commit comments

Comments
 (0)