summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rw-r--r--bin/pngo.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/pngo.c b/bin/pngo.c
index 0e13a7ec..ef4ded36 100644
--- a/bin/pngo.c
+++ b/bin/pngo.c
@@ -670,11 +670,11 @@ int main(int argc, char *argv[]) {
         }
     }
 
-    if (optind < argc) {
-        if (output || stdio) {
-            optimize(argv[optind], output);
-        } else {
-            optimize(argv[optind], argv[optind]);
+    if (argc - optind == 1 && (output || stdio)) {
+        optimize(argv[optind], output);
+    } else if (optind < argc) {
+        for (int i = optind; i < argc; ++i) {
+            optimize(argv[i], argv[i]);
         }
     } else {
         optimize(NULL, output);
n>Set colours for Xt and cwmJune McEnroe 2021-02-07Set urgency on bell in xtermJune McEnroe 2021-02-07Add bindings for brightness controlJune McEnroe 2021-02-07Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 2021-02-07Fully configure and rebind cwmJune McEnroe 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe 2021-02-06Add xterm output to schemeJune McEnroe