Make wmlscope abort gracefully (without stack trace) on interrupt.

This commit is contained in:
Eric S. Raymond 2009-03-18 14:41:39 +00:00
parent adee2bdf91
commit 11efcc99ec

View File

@ -357,6 +357,7 @@ Usage: macroscope [options] dirpath
directories are given, all files under the current directory are checked.
""")
try:
# Process options
(options, arguments) = getopt.getopt(sys.argv[1:], "cCdhe:f:lr:t:uw:",
[
@ -474,5 +475,7 @@ Usage: macroscope [options] dirpath
#xref.undersized()
xref.unresdump()
xref.duplicates(exportonly=True)
except:
print >>sys.stderr, "wmlscope: aborted."
# wmlscope ends here