We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a767fc commit a544a42Copy full SHA for a544a42
2 files changed
ChangeLog.asciidoc
@@ -4,6 +4,10 @@
4
:lang: en
5
6
7
+== Version 2.8 (under dev!)
8
+
9
+* sort and keep unique misspelled words with option -m/--only-misspelled
10
11
== Version 2.7 (2014-06-28)
12
13
* add argument id/str for -s/--spelling to check messages or translations
msgcheck/msgcheck.py
@@ -134,8 +134,10 @@ def main():
134
total_errors += len(reports)
135
if not args.quiet:
136
if args.only_misspelled:
137
- print('\n'.join([report.message for report in reports
138
- if report.idmsg.startswith('spelling-')]))
+ words = [report.message for report in reports
+ if report.idmsg.startswith('spelling-')]
139
+ print('\n'.join(sorted(set(words),
140
+ key=lambda s: s.lower())))
141
else:
142
print('\n'.join([str(report) for report in reports]))
143
0 commit comments