Explorar o código

bugfix: default should not be interactive (#304)

cocktailpeanut %!s(int64=2) %!d(string=hai) anos
pai
achega
da5303c1ea
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      main.cpp

+ 1 - 1
main.cpp

@@ -867,7 +867,7 @@ int main(int argc, char ** argv) {
     }
 
     // enable interactive mode if reverse prompt is specified
-    if (!antipromptv_inp.size()) {
+    if (antipromptv_inp.size() != 0) {
         params.interactive = true;
     }