summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-05-09 10:50:02 -0400
committerTavian Barnes <tavianator@tavianator.com>2022-05-09 11:55:06 -0400
commitb078d8d4bb7a4759ca1296b3f0be0866b7c182f2 (patch)
tree61a4b3cc7bdb8f179223c2c7ca2063024f610594 /README.md
parent37a9a5cda31f3b97dc8a14da37e5a1dd6fa99e9c (diff)
downloadbfs-b078d8d4bb7a4759ca1296b3f0be0866b7c182f2.tar.xz
README: Use a table for side-by-side examples
Diffstat (limited to 'README.md')
-rw-r--r--README.md45
1 files changed, 35 insertions, 10 deletions
diff --git a/README.md b/README.md
index 4f49dac..bec73c8 100644
--- a/README.md
+++ b/README.md
@@ -100,16 +100,41 @@ haystack/deep/1/2/3/4
For example, `bfs` is less picky about where you put its arguments:
-<pre>
-$ <strong>bfs</strong> -L -name 'needle' <em>haystack</em> │ $ <strong>find</strong> -L -name 'needle' <em>haystack</em>
-<strong>haystack/needle</strong> │ find: paths must precede expression: haystack
- │
-$ <strong>bfs</strong> <em>haystack</em> -L -name 'needle' │ $ <strong>find</strong> <em>haystack</em> -L -name 'needle'
-<strong>haystack/needle</strong> │ find: unknown predicate `-L'
- │
-$ <strong>bfs</strong> -L <em>haystack</em> -name 'needle' │ $ <strong>find</strong> -L <em>haystack</em> -name 'needle'
-<strong>haystack/needle</strong> │ <strong>haystack/needle</strong>
-</pre>
+<table>
+<tbody>
+<tr></tr>
+<tr>
+<td width="506">
+
+```console
+$ bfs -L -name 'needle' haystack
+haystack/needle
+
+$ bfs haystack -L -name 'needle'
+haystack/needle
+
+$ bfs -L haystack -name 'needle'
+haystack/needle
+```
+
+</td>
+<td width="506">
+
+```console
+$ find -L -name 'needle' haystack
+find: paths must precede expression: haystack
+
+$ find haystack -L -name 'needle'
+find: unknown predicate `-L'
+
+$ find -L haystack -name 'needle'
+haystack/needle
+```
+
+</td>
+</tr>
+</tbody>
+</table>
</details>
<details>