Change option name from format to dateformat
This commit is contained in:
parent
fb50acca57
commit
d425ae1a9a
|
@ -476,7 +476,7 @@ module GitHubChangelogGenerator
|
||||||
log = ''
|
log = ''
|
||||||
|
|
||||||
# Generate date string:
|
# Generate date string:
|
||||||
time_string = newer_tag_time.strftime @options[:format]
|
time_string = newer_tag_time.strftime @options[:dateformat]
|
||||||
|
|
||||||
# Generate tag name and link
|
# Generate tag name and link
|
||||||
if newer_tag_name.equal? @options[:unreleased_label]
|
if newer_tag_name.equal? @options[:unreleased_label]
|
||||||
|
|
|
@ -9,7 +9,7 @@ module GitHubChangelogGenerator
|
||||||
options = {
|
options = {
|
||||||
tag1: nil,
|
tag1: nil,
|
||||||
tag2: nil,
|
tag2: nil,
|
||||||
format: '%Y-%m-%d',
|
dateformat: '%Y-%m-%d',
|
||||||
output: 'CHANGELOG.md',
|
output: 'CHANGELOG.md',
|
||||||
issues: true,
|
issues: true,
|
||||||
add_issues_wo_labels: true,
|
add_issues_wo_labels: true,
|
||||||
|
@ -45,7 +45,7 @@ module GitHubChangelogGenerator
|
||||||
options[:token] = last
|
options[:token] = last
|
||||||
end
|
end
|
||||||
opts.on('-f', '--date-format [FORMAT]', 'Date format. Default is %Y-%m-%d') do |last|
|
opts.on('-f', '--date-format [FORMAT]', 'Date format. Default is %Y-%m-%d') do |last|
|
||||||
options[:format] = last
|
options[:dateformat] = last
|
||||||
end
|
end
|
||||||
opts.on('-o', '--output [NAME]', 'Output file. Default is CHANGELOG.md') do |last|
|
opts.on('-o', '--output [NAME]', 'Output file. Default is CHANGELOG.md') do |last|
|
||||||
options[:output] = last
|
options[:output] = last
|
||||||
|
|
Loading…
Reference in New Issue
Block a user