Permalink
Browse files

Merge pull request #12 from pzinovkin/patch-1

Return exit code
  • Loading branch information...
2 parents 329fa2f + 6d65216 commit 856a77fcb7271005110c4674185b79001f1d641c @dcramer committed Aug 3, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/piplint/__init__.py
@@ -9,6 +9,7 @@
import argparse
import os
import re
+import sys
from pkg_resources import parse_version
from subprocess import Popen, PIPE
@@ -215,9 +216,10 @@ def main():
cli_args = cli_parser.parse_args()
# call the main function to kick off the real work
- check_requirements(cli_args.file, strict=cli_args.strict,
- verbose=cli_args.verbose, venv=cli_args.venv,
- do_colour=cli_args.colour,)
+ code = check_requirements(cli_args.file, strict=cli_args.strict,
+ verbose=cli_args.verbose, venv=cli_args.venv,
+ do_colour=cli_args.colour,)
+ sys.exit(code)
if __name__ == '__main__':

0 comments on commit 856a77f

Please sign in to comment.