Skip to content

Commit 2283ae2

Browse files
committed
exit with number of misspellings
1 parent 03bd0bf commit 2283ae2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

codespell.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,3 +260,7 @@ def add_dict(enchant_dict, filename):
260260

261261
if not args.miss:
262262
print("")
263+
264+
print (len(bad_words), "misspellings found")
265+
266+
sys.exit(len(bad_words))

0 commit comments

Comments
 (0)