Skip to content

Commit

Permalink
Merge pull request #548 from kdmsnr/remove_all_option_from_review-com…
Browse files Browse the repository at this point in the history
…pile

Remove all option from review compile
  • Loading branch information
kdmsnr committed Apr 14, 2016
2 parents 964828f + 45c7a51 commit c7e21c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions bin/review-compile
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,6 @@ def _main
config["footnotetext"] = true
}
opts.on('--draft', 'use draft mode(inline comment)') { config["draft"] = true }
opts.on('-a', '--all', 'Compile all chapters.') do
mode = :dir
basedir = nil
end
opts.on('--directory=DIR', 'Compile all chapters in DIR.') do |path|
mode = :dir
basedir = path
Expand Down Expand Up @@ -146,6 +142,10 @@ def _main
config["builder"] = target
ReVIEW::I18n.setup(config["language"])

if ARGV.blank?
mode = :dir
end

case mode
when :files
if ARGV.empty?
Expand Down
2 changes: 1 addition & 1 deletion test/sample-book/src/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def build(mode, chapter)
end

def build_all(mode)
sh "review-compile --all --target=#{mode} --footnotetext --stylesheet=style.css"
sh "review-compile --target=#{mode} --footnotetext --stylesheet=style.css"
end

task :default => :html_all
Expand Down

0 comments on commit c7e21c4

Please sign in to comment.