aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/chotto4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/chotto b/bin/chotto
index 1998af5..0d6116f 100755
--- a/bin/chotto
+++ b/bin/chotto
@@ -7,6 +7,10 @@ require_relative '../lib/chotto'
CONFIG_FILEPATH = 'chotto/config.rb'
XDG_HOME = ENV.fetch('XDG_CONFIG_HOME', "#{Dir.home}/.config")
def start_chotto(options)
+ Chotto.configure do
+ config.only_new = options.fetch(:only_new, false)
+ end
+
config_file = File.read("#{XDG_HOME}/#{CONFIG_FILEPATH}")
instance_eval(config_file)
eval_rules(options)