From 3c709a27ac565e3926f6e4c48dd16e9e86d95ea5 Mon Sep 17 00:00:00 2001 From: Arran Cudbard-Bell Date: Thu, 7 Jun 2012 18:05:15 +0200 Subject: [PATCH] Add commandline option for disabling livepreview --- bin/gollum | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/gollum b/bin/gollum index f3dd829b..a496e5bd 100755 --- a/bin/gollum +++ b/bin/gollum @@ -57,6 +57,10 @@ opts = OptionParser.new do |opts| wiki_options[:ref] = ref end + opts.on("--no-live-preview", "Disables livepreview.") do + wiki_options[:live_preview] = false + end + opts.on("--no-mathjax", "Disables mathjax.") do options['mathjax'] = false end