Adding a parameter to macro call

In my package ShareAdd.jl a macro is defined in the form(s)

@usingany Pkg1
@usingany Pkg1, Pkg2, Pkg3

Now, I’d like to add an optional flag to first update the corresponding packages before import. What is the (best) way to do it?

From the user perspective, I’m accustomed to optional leading “keyword arguments” e.g. @code_llvm.

1 Like