:: commit ee68d3386e981f10467ca6c586cc4159705d8fe8

Kamila Szewczyk <kspalaiologos@gmail.com> — 2025-03-01 23:13

parents: 4688bb8ee8

batch mode: fall back to stdin input with no auxiliary arguments

diff --git a/src/main.c b/src/main.c
index 643e188..0925ab1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -637,7 +637,7 @@ int main(int argc, char * argv[]) {
         return 1;
     }
 
-    if (batch) {
+    if (batch && res->pos_argc) {
         switch (mode) {
             case MODE_ENCODE:
                 /* Encode each of the files. */
tab: 248 wrap: offon