# Using command line arguments via launch.json in VS Code

**URL:** <https://discourse.julialang.org/t/using-command-line-arguments-via-launch-json-in-vs-code/72953>\
**Category:** New to Julia\
**Tags:** question, vscode\
**Created:** [December 11, 2021, 10:13pm UTC](https://discourse.julialang.org/t/using-command-line-arguments-via-launch-json-in-vs-code/72953 "2021-12-11T22:13:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honj90](https://avatars.discourse-cdn.com/v4/letter/h/8797f3/32.png) [@honj90](https://discourse.julialang.org/u/honj90)\
**Post date:** [December 11, 2021, 10:13pm UTC](https://discourse.julialang.org/t/using-command-line-arguments-via-launch-json-in-vs-code/72953/1 "2021-12-11T22:13:51Z")

</div>

Hello,

I have just started using Julia and would like to find an easy way to test a function that relies on command line arguments in VS Code. According to the documentation, I should be able to use the launch.json file to achieve that.

[https://www.julia-vscode.org/docs/dev/userguide/runningcode/](https://www.julia-vscode.org/docs/dev/userguide/runningcode/)

However using the below launch configuration, I can’t seem to get my program to recognise the arguments. I know that the configuration is actually applied (changing the program name to something random gives an error message), but after multiple tried I haven’t been able to get the arguments to register. I have also tested passing the arguments via command line and they are correctly recognised, so it’s only the launch.json configuration that is giving me trouble.

I would be grateful for any help.

```julia
{

    // Use IntelliSense to learn about possible attributes.

    // Hover to view descriptions of existing attributes.

    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

    "version": "0.2.0",

    "configurations": [

        {

            "type": "julia",

            "request": "launch",

            "name": "Run wrapper",

            "program": "FilterVariantFrequencyWrapper.jl",

            "stopOnEntry": false,

            "cwd": "${workspaceFolder}",

            "juliaEnv": "${command:activeJuliaEnvironment}",

            "args": ["--pmin 0.2", "--pmax 0.7", "mutation_frequency_test.csv"],

        }

    ]

}

```
