Fix migrate script path argument. Fix gollum --version (#1538)

This commit is contained in:
Dawa Ometto
2020-04-02 14:08:17 +02:00
committed by GitHub
parent 0cb303f09f
commit 5a8750a975
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -172,6 +172,7 @@ MSG
end
opts.on('--version', 'Display the current version of Gollum.') do
puts 'Gollum ' + Gollum::VERSION
exit 0
end
opts.on('--versions', 'Display the current version of Gollum and auxiliary gems.') do
require 'gollum-lib'
+2 -2
View File
@@ -4,8 +4,6 @@ require 'optparse'
require 'pathname'
require 'rubygems'
REPO = ARGV[0] || Dir.pwd
wiki_options = {}
options = {}
@@ -89,6 +87,8 @@ rescue OptionParser::InvalidOption
exit
end
REPO = ARGV[0] || Dir.pwd
require 'gollum-lib'
if cfg = options[:config]