diff --git a/module.nix b/module.nix index 839b481..02013ad 100644 --- a/module.nix +++ b/module.nix @@ -63,7 +63,7 @@ in { PRICEBOT_EXCHANGE_HOST = cfg.exchange-host; PRICEBOT_BEBOT_URL = cfg.mattermost-url; PRICEBOT_BEBOT_CHANNEL_ID = opts.mattermost-channel-id; - PRICEBOT_TARGET_CURRENCY = opts.currency; + PRICEBOT_CURRENCY = opts.currency; PRICEBOT_NOTIFY_USER = opts.notify-user; }; serviceConfig = { diff --git a/src/pricebot/core.clj b/src/pricebot/core.clj index e3e6a34..7adce42 100644 --- a/src/pricebot/core.clj +++ b/src/pricebot/core.clj @@ -185,7 +185,10 @@ missing (filter (fn [k] (not (get opts k))) keys)] (cond (:help opts) (exit! 0 (println (:summary opts))) (:errors opts) (exit! 1 (println (str/join \newline (:errors opts)))) - (not (empty? missing)) (exit! 2 (println (str "missing arguments: " (str/join " " (map name missing))))) + (not (empty? missing)) (exit! 2 (println (str "missing arguments: " (str/join " " (map name missing)) + \newline + "available: " + (str/join " " (keys opts))))) :else opts))) (defn -main [& args]