Explorar el Código

Return a failure code when aborting.

Christopher Kohnert hace 8 años
padre
commit
cbc5797bd7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      main.cpp

+ 1 - 1
main.cpp

@@ -333,7 +333,7 @@ static const char *helpText =
     "\n";
 
 int main(int argc, const char * const *argv) {
-    #define ABORT(msg) { puts(msg); return 0; }
+    #define ABORT(msg) { puts(msg); return 1; }
 
     // Parse command line arguments
     enum {