From fcca42fc69961a59466e900f812cb03377006f22 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 18 Nov 2014 17:00:11 -0500 Subject: [PATCH] Guard against people innocently typing -m"foo" a la RCS. All regression tests pass. --- src | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.43.0