You can hand over arbitrary command line options after --:
> julia -e 'println(@static isempty(Base.ARGS) ? "performance" : "test")'
performance
> julia -e 'println(@static isempty(Base.ARGS) ? "performance" : "test")' -- --my-custom-option
test
Obviously, you would use a more robust check than this and do something else in your code than providing the code directly and only doing conditional printing.