Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Return exit code #12

Merged
merged 1 commit into from

2 participants

@pzinovkin

No description provided.

@dcramer dcramer merged commit 856a77f into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 3, 2013
  1. @pzinovkin

    Return exit code

    pzinovkin authored
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/piplint/__init__.py
View
8 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__':
Something went wrong with that request. Please try again.