summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMarkus Teich <markus.teich@stusta.mhn.de>2016-03-06 20:49:18 +0100
committerMarkus Teich <markus.teich@stusta.mhn.de>2016-03-06 20:49:18 +0100
commitb954ed4b9f1ef7e3d4ebb3bc964338726549bfab (patch)
tree862baab84abbc76647d429295bcf500787a4da7e /README.md
parent616aafdcb9bd336a870d875a20645d8002d8a028 (diff)
downloadsent-b954ed4b9f1ef7e3d4ebb3bc964338726549bfab.tar.gz
sent-b954ed4b9f1ef7e3d4ebb3bc964338726549bfab.tar.bz2
sent-b954ed4b9f1ef7e3d4ebb3bc964338726549bfab.zip
Fix cmdline argument check
There was a segfault when sent was called without arguments. Now we use stdin when there's no argument or - is used. Thanks to izabera for the report.
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index 70f60f9..3583d33 100644
--- a/README.md
+++ b/README.md
@@ -25,12 +25,12 @@ You can navigate with the arrow keys and quit with `q`.
Usage
- sent FILE
+ sent [FILE]
-If FILE equals `-`, stdin will be read. Produce image slides by prepending a
-`@` in front of the filename as a single paragraph. Lines starting with `#` will
-be ignored. A `\` at the beginning of the line escapes `@` and `#`. A
-presentation file could look like this:
+If FILE is omitted or equals `-`, stdin will be read. Produce image slides by
+prepending a `@` in front of the filename as a single paragraph. Lines starting
+with `#` will be ignored. A `\` at the beginning of the line escapes `@` and
+`#`. A presentation file could look like this:
sent
Software created with 💖