#30 Fix exit code on success.
Opened 5 months ago by qulogic. Modified 18 days ago
qulogic/r2spec fix-exit  into  master

file modified
+1

@@ -31,6 +31,7 @@ 

      ARG = PARSER.parse_args()

      try:

          ret = R2spec().main(ARG)

+         ret = 0 if ret is not None else 1

      except R2specError as err:

          print(err)

          ret = 1

I messed it up a bit before, as R2spec.main returns the package object on success, not an exit code.

Metadata
Changes Summary 1