aboutsummaryrefslogtreecommitdiffstats
path: root/core/boot
diff options
context:
space:
mode:
authorToshiaki Asai <qtoship@gmail.com>2013-02-16 02:34:41 +0900
committerToshiaki Asai <qtoship@gmail.com>2013-02-16 02:34:41 +0900
commit6362ebaac2054a0b75f4706d3052ec48661724ff (patch)
tree2df37df2961c3783e2db23c2d26a3ff76bca2724 /core/boot
parent682d39817a16a326492ed059af32b107910158d0 (diff)
downloadmikutter-6362ebaac2054a0b75f4706d3052ec48661724ff.tar.gz
confrootディレクトリをコマンドラインオプションで指定できるようにした refs #560
Diffstat (limited to 'core/boot')
-rw-r--r--core/boot/option.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/boot/option.rb b/core/boot/option.rb
index 4f38894e..7d9fc1c6 100644
--- a/core/boot/option.rb
+++ b/core/boot/option.rb
@@ -23,6 +23,9 @@ module Mopt
opt.on('--profile', 'Profiling mode (for development)') { @opts[:profile] = true }
opt.on('--skip-version-check', 'Skip library and environment version check') { @opts[:skip_version_check] = true }
opt.on('-p', '--plugin=', 'Plugin slug to load (comma separated)'){ |plugins| @opts[:plugin] = (@opts[:plugin]||[]).concat plugins.split(",") }
+ opt.on('--confroot=', 'set confroot directory') { |v|
+ @opts[:confroot] = File.expand_path(v)
+ }
opt.on('--clean', 'delete all caches and duplicated files') { |v|
require 'fileutils'
require File.expand_path('utils')