print("Found a flag declared with an _ but which is not explicitly listed as a valid flag name in hack/verify-flags/excluded-flags.txt")
print("Are you certain this flag should not have been declared with an - instead?")
new_excluded_flags.sort()
print("%s"%"\n".join(new_excluded_flags))
sys.exit(1)
iflen(new_flags)!=0:
print("Found flags in golang files not in the list of known flags. Please add these to hack/verify-flags/known-flags.txt")
new_flags.sort()
print("%s"%"\n".join(new_flags))
sys.exit(1)
returnlist(flags)
...
...
@@ -230,6 +232,7 @@ def main():
iflen(bad_lines)!=0:
ifnotargs.skip_exceptions:
print("Found illegal 'flag' usage. If these are false positives you should running `hack/verify-flags-underscore.py -e > hack/verify-flags/exceptions.txt` to update the list.")