m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-25 11:53:47 +0100
committerMarcin Chrzanowski <m@m-chrzan.xyz>2021-03-25 11:53:47 +0100
commitecb88b6d4a44bdaccdb1b83f66b1130fd7d16ea3 (patch)
tree0a1b2fa2fcc52e3086bcb211c6b98702b61f4ab9
parent7cb4d8944f37362b4579bcc5054e954e6701b49b (diff)
Add pup HTML parser info
-rw-r--r--html.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/html.md b/html.md
index b8b7d43..f43659f 100644
--- a/html.md
+++ b/html.md
@@ -22,3 +22,12 @@ page. To avoid reloading:
To check by default:
<input type='checkbox' checked>
+
+## CLI parsing with `pup`
+
+`pup` is a little command line parser, inspired by `jq`.
+
+ pup --file <file> '<selectors> [display function]'
+
+By default pretty prints the full selected HTML elements. Setting display
+function to `text{}` prints out just the inner text.