Fix migrate script path argument. Fix gollum --version (#1538)
This commit is contained in:
@@ -172,6 +172,7 @@ MSG
|
|||||||
end
|
end
|
||||||
opts.on('--version', 'Display the current version of Gollum.') do
|
opts.on('--version', 'Display the current version of Gollum.') do
|
||||||
puts 'Gollum ' + Gollum::VERSION
|
puts 'Gollum ' + Gollum::VERSION
|
||||||
|
exit 0
|
||||||
end
|
end
|
||||||
opts.on('--versions', 'Display the current version of Gollum and auxiliary gems.') do
|
opts.on('--versions', 'Display the current version of Gollum and auxiliary gems.') do
|
||||||
require 'gollum-lib'
|
require 'gollum-lib'
|
||||||
|
|||||||
@@ -4,8 +4,6 @@ require 'optparse'
|
|||||||
require 'pathname'
|
require 'pathname'
|
||||||
require 'rubygems'
|
require 'rubygems'
|
||||||
|
|
||||||
REPO = ARGV[0] || Dir.pwd
|
|
||||||
|
|
||||||
wiki_options = {}
|
wiki_options = {}
|
||||||
options = {}
|
options = {}
|
||||||
|
|
||||||
@@ -89,6 +87,8 @@ rescue OptionParser::InvalidOption
|
|||||||
exit
|
exit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
REPO = ARGV[0] || Dir.pwd
|
||||||
|
|
||||||
require 'gollum-lib'
|
require 'gollum-lib'
|
||||||
|
|
||||||
if cfg = options[:config]
|
if cfg = options[:config]
|
||||||
|
|||||||
Reference in New Issue
Block a user