Fix executable name.
And print out missing params more neatly.
This commit is contained in:
parent
1e350b655f
commit
77f6bd1613
|
@ -29,6 +29,9 @@
|
|||
buildInputs = with helpers.packages."${system}";
|
||||
[ updateClojureDeps ];
|
||||
};
|
||||
suanniServer = pkgs.mkShell {
|
||||
buildInputs = with self.packages."${system}"; [ suanni-server ];
|
||||
};
|
||||
};
|
||||
}) // {
|
||||
nixosModules = rec {
|
||||
|
|
|
@ -103,7 +103,7 @@ in {
|
|||
];
|
||||
ExecStart = pkgs.writeShellScript "suanni-server.sh"
|
||||
(concatStringsSep " " ([
|
||||
"suanni-server"
|
||||
"suanni.server"
|
||||
"--hostname=${cfg.event-listener.hostname}"
|
||||
"--port=${toString cfg.event-listener.port}"
|
||||
"--synology-host=${cfg.synology-client.host}"
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
(defn- parse-opts [args required cli-opts]
|
||||
(let [{:keys [options]} :as result (cli/parse-opts args cli-opts)
|
||||
missing (set/difference required (-> options (keys) (set)))
|
||||
missing-errors (map #(format "missing required parameter: %s" %)
|
||||
missing-errors (map #(format "missing required parameter: %s" (name %))
|
||||
missing)]
|
||||
(update result :errors concat missing-errors)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue