Implement git adapter CLI flag.

This commit is contained in:
Dawa Ometto
2014-11-26 00:28:35 +01:00
parent 57b7bbff5a
commit a776d9fb6f
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -45,6 +45,10 @@ opts = OptionParser.new do |opts|
options['config'] = config
end
opts.on("--adapter [ADAPTER]", "Git adapter to use in the backend. Defaults to grit.") do |adapter|
Gollum::GIT_ADAPTER = adapter
end
opts.on("--irb", "Start an irb process with gollum loaded for the current wiki.") do
options['irb'] = true
end