From: Eric S. Raymond Date: Tue, 18 Nov 2014 22:00:11 +0000 (-0500) Subject: Guard against people innocently typing -m"foo" a la RCS. X-Git-Tag: 0.10~7 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=fcca42fc69961a59466e900f812cb03377006f22;p=src.git Guard against people innocently typing -m"foo" a la RCS. All regression tests pass. --- diff --git a/src b/src index 7961d29..00b6ec7 100755 --- a/src +++ b/src @@ -895,6 +895,8 @@ The cut line and things below it will not become part of the comment text. croak("%s -f requires a following filename argument" % legend) except OSError: croak("couldn't open %s." % args[1]) + elif args[0].startswith("-"): + croak("unexpected %s option" % args[0]) def edit(self, content="", trailer=""): "Interactively edit a comment if required, then prepare for handoff." if self.leader and not self.force_edit: