filter-tags - Rename option.

This commit is contained in:
soundstep 2016-01-22 15:11:12 +00:00
parent a676650993
commit 1bae4ea204
2 changed files with 4 additions and 4 deletions

View File

@ -71,9 +71,9 @@ module GitHubChangelogGenerator
response.each_page do |page|
if @options[:filter_tags]
if @options[:exclude_tags_filter]
body_new = []
reg = Regexp.new @options[:filter_tags]
reg = Regexp.new @options[:exclude_tags_filter]
page.body.each do |tag|
if !(tag.name =~ reg)
body_new << tag

View File

@ -116,8 +116,8 @@ module GitHubChangelogGenerator
opts.on("--between-tags x,y,z", Array, "Change log will be filled only between specified tags") do |list|
options[:between_tags] = list
end
opts.on("--filter-tags [REGEX]", "Apply a regular expression on tag names so that they can be excluded, for example: --filter-tags \".*\+\d{1,}\" ") do |last|
options[:filter_tags] = last
opts.on("--exclude-tags-filter [REGEX]", "Apply a regular expression on tag names so that they can be excluded, for example: --exclude-tags-filter \".*\+\d{1,}\" ") do |last|
options[:exclude_tags_filter] = last
end
opts.on("--exclude-tags x,y,z", Array, "Change log will exclude specified tags") do |list|
options[:exclude_tags] = list