I am trying to implement some basic features of python-fire package(https://github.com/google/python-fire) with julia. My current work result is https://github.com/orangeSi/Jfire.jl, Jfire can call modules or functions, but still cann’t output more help information about funciton parameters.
assume you have a file myth.jl is like this:
function hello(;name::String="sikaiwei", greet::String="how is the weather?", number::Number=3)
println("hello, $name. $greet. $number")
if abspath(PROGRAM_FILE) == @__FILE__
Jfire.Fire(myth, time=true, color=:yellow, info=false)
so you can call help information like:
julia myth.jl hello -h
but I want to output more detail description about --name/–greet/–number(example:
so at first I try to defined these description in Function hello, then maybe I call access these description in Jfire.Fire.