In Comonicon.jl 's README it is said it is possible to generate CLI without adding Comonicon as dependency:
Zero Dependency
You can get rid of
Comonicon
entirely after you generate the command line parsing script
viawrite_cmd(filename, command_object)
. It means if you copy this file into your script, you
will get a standalone Julia script (unless the script depends on something else). However,
this is usually not necessary sinceComonicon
itself is quite fast to load, the main latency
of a CLI application usually comes from other dependencies or the application itself.
It is not clear to me what this command_object
is.
I couldn’t find further information in the docs on how to generate the CLI script without including Comonicon as a dependency in the project.
Does anyone know the steps to do this?