Skip to content

Commit 83b5ec5

Browse files
author
pedro
committed
added attr documentation
1 parent 8bcf126 commit 83b5ec5

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed

README.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,23 @@ For a modern, user friendly http client, check httpie. Or you can just use curl,
3636
* `selector`
3737
A css selector
3838

39+
* `-a ATTRIBUTE --attr=ATTRIBUTE`
40+
Outputs only the contents of the html ATTRIBUTE.
41+
3942
* `-t, --text`
4043
Outputs only the inner text of the selected elements.
41-
44+
4245
* `-q, --squash`
4346
Squash lines.
44-
47+
4548
* `-s, --squash-space`
4649
Squash spaces.
47-
50+
4851
* `-j, --json-lines`
4952
JSON encode each match.
50-
53+
5154
* `-J, --json`
5255
Output as json array of strings.
53-
56+
5457
* `-v, --version`
55-
Prints tq version
58+
Prints tq version

doc/compile_manpage.sh

100644100755
File mode changed.

doc/tq.1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" generated with Ronn/v0.7.3
22
.\" http://github.com/rtomayko/ronn/tree/0.7.3
33
.
4-
.TH "TQ" "1" "September 2015" "" ""
4+
.TH "TQ" "1" "November 2015" "" ""
55
.
66
.SH "NAME"
77
\fBtq\fR \- Terminal based HTML query tool
@@ -15,7 +15,10 @@ Perform a css query with SELECTOR on an html document passed to the standard inp
1515
.SH "OPTIONS"
1616
.
1717
.IP "\(bu" 4
18-
\fBselector\fR A css selector
18+
\fISELECTOR\fR A css selector
19+
.
20+
.IP "\(bu" 4
21+
\fB\-a\fR\fIATTRIBUTE\fR\fB\-\-attr=\fR\fIATTRIBUTE\fR Outputs only the contents of the html ATTRIBUTE\.
1922
.
2023
.IP "\(bu" 4
2124
\fB\-t, \-\-text\fR Outputs only the inner text of the selected elements\.

doc/tq.1.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,27 @@ Perform a css query with SELECTOR on an html document passed to the standard inp
1111

1212
## OPTIONS
1313

14-
* `selector`
14+
* _SELECTOR_
1515
A css selector
1616

17+
* `-a `_ATTRIBUTE_` --attr=`_ATTRIBUTE_
18+
Outputs only the contents of the html ATTRIBUTE.
19+
1720
* `-t, --text`
1821
Outputs only the inner text of the selected elements.
19-
22+
2023
* `-q, --squash`
2124
Squash lines.
22-
25+
2326
* `-s, --squash-space`
2427
Squash spaces.
25-
28+
2629
* `-j, --json-lines`
2730
JSON encode each match.
28-
31+
2932
* `-J, --json`
3033
Output as json array of strings.
31-
34+
3235
* `-v, --version`
3336
Prints tq version
3437

@@ -54,4 +57,4 @@ The latest version of tq may be downloaded from https://github.com/plainas/tq
5457

5558
## SEE ALSO
5659

57-
curl(1), wget(1), jq(1)
60+
curl(1), wget(1), jq(1)

0 commit comments

Comments
 (0)