From c78dcbfe9c96696565b4d50187a81da5a87b8f04 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 24 Apr 2013 20:38:38 +0100 Subject: Add option --check --- license-summary | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'license-summary') 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\S.*\S)\s*=\*=') self.summaries = {} -- cgit v1.2.1