Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[IMPROVE] Setting appropriate exit code when is existing with erros.
  • Loading branch information
ultimatecoder committed Jun 15, 2018
commit 2cfc30bb33fc6be4c6c7bf412b7eb820d19f9107
4 changes: 2 additions & 2 deletions Lib/tabnanny.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ def main():
opts, args = getopt.getopt(sys.argv[1:], "qv")
except getopt.error as msg:
errprint(msg)
return
sys.exit(1)
for o, a in opts:
if o == '-q':
filename_only = filename_only + 1
if o == '-v':
verbose = verbose + 1
if not args:
errprint("Usage:", sys.argv[0], "[-v] file_or_directory ...")
return
sys.exit(1)
for arg in args:
check(arg)

Expand Down