# How to pass flag-like commandline ARGS to julia -e

**URL:** https://discourse.julialang.org/t/how-to-pass-flag-like-commandline-args-to-julia-e/108797
**Category:** General Usage
**Tags:** question, cli
**Created:** [January 14, 2024, 8:57pm UTC](https://discourse.julialang.org/t/how-to-pass-flag-like-commandline-args-to-julia-e/108797 "2024-01-14T20:57:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)
#### Post date: [January 14, 2024, 8:57pm UTC](https://discourse.julialang.org/t/how-to-pass-flag-like-commandline-args-to-julia-e/108797/1 "2024-01-14T20:57:29Z")

</div>

Hello,  
I just run into the issue, that julia will interprete flags even if passed after `-e`.  
The `--` also does not seem to help, because it demands a file, but I really just want the -e and no extra file.

---

<div class="post-metadata">

### Author: ![jar1](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@jar1](https://discourse.julialang.org/u/jar1)
#### Post date: [January 14, 2024, 8:59pm UTC](https://discourse.julialang.org/t/how-to-pass-flag-like-commandline-args-to-julia-e/108797/2 "2024-01-14T20:59:50Z")

</div>

Can you give an example of the problem? This works for me on 1.10.0

```julia
% julia --startup-file=no -e'println(ARGS)' -- --version
["--version"]

```

---

<div class="post-metadata">

### Author: ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)
#### Post date: [January 14, 2024, 9:00pm UTC](https://discourse.julialang.org/t/how-to-pass-flag-like-commandline-args-to-julia-e/108797/3 "2024-01-14T21:00:37Z")

</div>

Thank you so much for the quick reply - I myself tried it now with a simple example and everything works. I must be confused and it is actually a completely different issue I run into.
