lambdaisland

Eugen 2025-01-09T21:35:39.230789Z

hi, I'm using lambda cli and I build an uber jar and run the jar. I've noticed that it does not work with regular dispatch. I have to pass dispatch* with the args for it to work

(ns some-ns
  (:require
   [lambdaisland.cli :as cli])
  (:gen-class))

(defn cli-test
  "Ground breaking tool breaks new ground."
  [flags]
  (pprint/pprint flags))

(defn -main
  [& args]
  (cli/dispatch* {:command #'cli-test} args))
this works, but this does not
(defn -main
  [& args]
  (cli/dispatch #'cli-test))
it does not print any arguments - they are not passed to cli

Eugen 2025-01-09T21:36:56.258239Z

seems like a bug or at least something that should be documented

Eugen 2025-01-09T21:37:07.112309Z

should I raise an issue?