Clojurians
#duct
<
2018-08-14
>

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

psdp04:08:24

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?

myguidingstar15:08:27

@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)?