diff --git a/release-notes.html b/release-notes.html index 46b12f4..7dcc6a0 100644 --- a/release-notes.html +++ b/release-notes.html @@ -13,9 +13,11 @@

Version 0.21

-

TBD

+

Sep 27th, 2009

diff --git a/scour.py b/scour.py index 9b69595..2340e83 100755 --- a/scour.py +++ b/scour.py @@ -2375,6 +2375,8 @@ def parse_args(args=None): _options_parser.error("Can't have negative significant digits, see --help") if not options.indent_type in ["tab", "space", "none"]: _options_parser.error("Invalid value for --indent, see --help") + if options.infilename and options.outfilename and options.infilename == options.outfilename: + _options_parser.error("Input filename is the same as output filename") if options.infilename: infile = maybe_gziped_file(options.infilename)