From a1335c875479b023645c49b0cc3df325703da944 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 5 Jun 2016 19:44:21 -0700 Subject: [PATCH] Switch to positional filename args. s/USELESS/UNUSED/ --- minheader.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/minheader.py b/minheader.py index c034d6a..de50d77 100755 --- a/minheader.py +++ b/minheader.py @@ -13,16 +13,14 @@ parser.add_argument( dest='include_paths', action='append', required=True) -parser.add_argument( - '--source-file', - dest='source_files', - action='append', - required=True) parser.add_argument( '--test-command', dest='test_command', action='store', required=True) +parser.add_argument( + dest='source_files', + nargs='+') FLAGS = parser.parse_args() @@ -62,7 +60,7 @@ class MinHeader(object): # Is the include useful at all? if self._TestReplacement(path, lines, inc_i, []): - self._Log('USELESS\n') + self._Log('UNUSED\n') return True elif self._TestReplacement(path, lines, inc_i, sub_includes): self._Log('OVERBROAD\n')