diff options
author | Toshiaki Asai <qtoship@gmail.com> | 2013-02-16 02:34:41 +0900 |
---|---|---|
committer | Toshiaki Asai <qtoship@gmail.com> | 2013-02-16 02:34:41 +0900 |
commit | 6362ebaac2054a0b75f4706d3052ec48661724ff (patch) | |
tree | 2df37df2961c3783e2db23c2d26a3ff76bca2724 /core/boot | |
parent | 682d39817a16a326492ed059af32b107910158d0 (diff) | |
download | mikutter-6362ebaac2054a0b75f4706d3052ec48661724ff.tar.gz |
confrootディレクトリをコマンドラインオプションで指定できるようにした refs #560
Diffstat (limited to 'core/boot')
-rw-r--r-- | core/boot/option.rb | 3 |
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') |