From 6f05e777280cd36a8ccaf20182c4e8a0554bb563 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Tue, 19 Mar 2013 21:11:29 +0100 Subject: New options: -[io], read/write files from/to stdin/out Fixes issue #84 --- commands.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 3e108a4..0ab1944 100644 --- a/commands.c +++ b/commands.c @@ -26,6 +26,7 @@ #include "commands.h" #include "image.h" +#include "options.h" #include "thumbs.h" #include "util.h" #include "config.h" @@ -57,6 +58,12 @@ const int ss_delays[] = { bool it_quit(arg_t a) { + unsigned int i; + + if (options->to_stdout) { + for (i = 0; i < filecnt; i++) + printf("%s\n", files[i].name); + } cleanup(); exit(EXIT_SUCCESS); } -- cgit v1.2.3-54-g00ecf