diff options
author | Lars Wirzenius <liw@liw.fi> | 2013-04-24 20:38:38 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2013-04-24 20:38:38 +0100 |
commit | c78dcbfe9c96696565b4d50187a81da5a87b8f04 (patch) | |
tree | af356fb1a893819267bda557c7c820ed6aacb520 | |
parent | f61862c2daaae7acc07a8cfe1bb7d38d344c4a79 (diff) | |
download | license-summary-c78dcbfe9c96696565b4d50187a81da5a87b8f04.tar.gz |
Add option --check
-rwxr-xr-x | license-summary | 5 |
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 = {} |