You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to @cast the print function, it seems to be overloaded when I am running commands with --help and --version flags. Here I add the following lines to FakePkg.jl:
@castfunctionprint(file)
@show file
ifsplitext(file)[2] ==".toml"print("hhhh")
else# An intentional errorerror("my casted `print` is loaded!")
endend
and simplify Comonicon.toml to
name = "pkg"
[install]
completion=truequiet=falsecompile="min"optimize=2
[download]
host="github.com"user="Roger-luo"repo="Foo.jl"
and install the command pkg.
And when I run pkg --help or pkg --version, they throw the error:
If I want to
@cast
theprint
function, it seems to be overloaded when I am running commands with--help
and--version
flags. Here I add the following lines to FakePkg.jl:and simplify Comonicon.toml to
and install the command
pkg
.And when I run
pkg --help
orpkg --version
, they throw the error:However, if I rename
print
toshow
, e.g., the above error disappears:Version of the package:
run
Pkg.status()
under your environment that usesComonicon
The text was updated successfully, but these errors were encountered: