From b954ed4b9f1ef7e3d4ebb3bc964338726549bfab Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Sun, 6 Mar 2016 20:49:18 +0100 Subject: 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. --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'README.md') 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 -- cgit v1.2.3