From 1b7375346181714c8adeec6820af240266407f12 Mon Sep 17 00:00:00 2001 From: Rene Saarsoo Date: Wed, 7 Dec 2011 12:52:02 +0200 Subject: [PATCH] Replace {VERSION} in --footer with JSDuck version. --- lib/jsduck/options.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jsduck/options.rb b/lib/jsduck/options.rb index c0906d64..9dba4942 100644 --- a/lib/jsduck/options.rb +++ b/lib/jsduck/options.rb @@ -179,8 +179,8 @@ module JsDuck opts.on('--footer=TEXT', "Custom footer text for the documentation.", - "Defaults to: 'Generated with JSDuck.'", " ") do |text| - @footer = text + "Defaults to: 'Generated with JSDuck {VERSION}.'", " ") do |text| + @footer = text.gsub(/\{VERSION\}/, @version) end opts.on('--head-html=HTML', "HTML to append to the section of index.html.", " ") do |html| -- GitLab