Switch to positional filename args. s/USELESS/UNUSED/

This commit is contained in:
Ian Gulliver
2016-06-05 19:44:21 -07:00
parent 94d6547d63
commit a1335c8754

View File

@@ -13,16 +13,14 @@ parser.add_argument(
dest='include_paths', dest='include_paths',
action='append', action='append',
required=True) required=True)
parser.add_argument(
'--source-file',
dest='source_files',
action='append',
required=True)
parser.add_argument( parser.add_argument(
'--test-command', '--test-command',
dest='test_command', dest='test_command',
action='store', action='store',
required=True) required=True)
parser.add_argument(
dest='source_files',
nargs='+')
FLAGS = parser.parse_args() FLAGS = parser.parse_args()
@@ -62,7 +60,7 @@ class MinHeader(object):
# Is the include useful at all? # Is the include useful at all?
if self._TestReplacement(path, lines, inc_i, []): if self._TestReplacement(path, lines, inc_i, []):
self._Log('USELESS\n') self._Log('UNUSED\n')
return True return True
elif self._TestReplacement(path, lines, inc_i, sub_includes): elif self._TestReplacement(path, lines, inc_i, sub_includes):
self._Log('OVERBROAD\n') self._Log('OVERBROAD\n')