summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlicense-summary5
1 files changed, 5 insertions, 0 deletions
diff --git a/license-summary b/license-summary
index 05ed6d1..c719389 100755
--- a/license-summary
+++ b/license-summary
@@ -37,6 +37,11 @@ class LicenseSummary(cliapp.Application):
'from report of files without a license summary',
metavar='REGEXP')
+ self.settings.boolean(
+ ['check'],
+ 'fail if any files are missing a license summary, '
+ 'or there are more than one summaries in use')
+
def setup(self):
self.pat = re.compile(r'=\*= [Ll]icen[cs]es?:\s*(?P<summary>\S.*\S)\s*=\*=')
self.summaries = {}