From 134c18ba06fd001dd851ef9a21ef71be9148e87a Mon Sep 17 00:00:00 2001 From: Petr Korolev Date: Mon, 25 May 2015 09:56:59 +0300 Subject: [PATCH] typo --- .../generator/generator_generation.rb | 2 +- lib/github_changelog_generator/parser.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/github_changelog_generator/generator/generator_generation.rb b/lib/github_changelog_generator/generator/generator_generation.rb index 66f2a05..f5e6b8f 100644 --- a/lib/github_changelog_generator/generator/generator_generation.rb +++ b/lib/github_changelog_generator/generator/generator_generation.rb @@ -65,7 +65,7 @@ module GitHubChangelogGenerator log = "" # Generate date string: - time_string = newer_tag_time.strftime @options[:dateformat] + time_string = newer_tag_time.strftime @options[:date_format] # Generate tag name and link if newer_tag_name.equal? @options[:unreleased_label] diff --git a/lib/github_changelog_generator/parser.rb b/lib/github_changelog_generator/parser.rb index 891fb9f..0070c74 100644 --- a/lib/github_changelog_generator/parser.rb +++ b/lib/github_changelog_generator/parser.rb @@ -9,7 +9,7 @@ module GitHubChangelogGenerator options = { tag1: nil, tag2: nil, - dateformat: "%Y-%m-%d", + date_format: "%Y-%m-%d", output: "CHANGELOG.md", issues: true, add_issues_wo_labels: true, @@ -45,7 +45,7 @@ module GitHubChangelogGenerator options[:token] = last end opts.on("-f", "--date-format [FORMAT]", "Date format. Default is %Y-%m-%d") do |last| - options[:dateformat] = last + options[:date_format] = last end opts.on("-o", "--output [NAME]", "Output file. Default is CHANGELOG.md") do |last| options[:output] = last