Commit 55037b3

Anton Medvedev <anton@medv.io>
2021-08-19 22:35:06
Use stdin
1 parent f6a97d0
Changed files (2)
README.md
@@ -392,9 +392,9 @@ zx https://medv.io/example-script.mjs
 zx https://medv.io/game-of-life.mjs
 ```
 
-#### Executing scripts from STDIN
+#### Executing scripts from stdin
 
-The `zx` supports executing scripts from STDIN.
+The `zx` supports executing scripts from stdin.
 
 ```js
 zx <<'EOF'
zx.mjs
@@ -220,6 +220,7 @@ function printUsage() {
   console.log(
     'usage: zx [--quiet] [--shell=<path>]\n' +
     '          [--prefix=<command>]\n' +
-    '          <script>'
+    '          <script>\n' +
+    '       zx <<< <script>'
   )
 }