This page is not created by, affiliated with, or supported by Slack Technologies, Inc.


Hi, I'm trying to create a CLI application with duct framework, not sure how to do it properly. I have a handler for key :my-app.cli/dummy then I would be able to call it like lein run :my-app.cli/dummy .... I would also want to pass some CLI arguments to the handler that can be accessed via *command-line-args*, it works only if being called from lein run, but when bundled in a jar and called from it there, *command-line-args* became nil. What can I do to fix it?


@psdp why using such dynamic var? Btw, did you look at the -main function of the main namespace (which can be found in :main key in project.clj file)?