PackageCompiler.jl how to specify ARGS for create_app?

Not quite sure what do you mean, but what I do in my project is like the following.
We know that create_app accept an argument precompile_execution_file, and I write the file like that:

old_ARGS = copy(ARGS)
empty!(ARGS)

# set some ARGS
julia_main()

# set another ARGS
julia_main()

# and so on

empty!(ARGS)
for i = 1 : length(old_ARGS)
    push!(ARGS, old_ARGS[i])
end
2 Likes