I need someone to outline how to pass command line arguments to CLion. What I've found so far hasn't worked for me. Specifically I need to know how to pass multiple arguments to the program from the command line.
Asked
Active
Viewed 2.5k times
14
-
Have you seen [this](http://stackoverflow.com/questions/33599067/clion-command-line-program-arguments)? – NathanOliver Feb 10 '16 at 14:38
2 Answers
15
If you click on Run
-Edit Configurations
you can create an "Application" configuration that allows you to provide the Program arguments
- either in a single line, or in a separate window one argument per line.

rustyMagnet
- 3,479
- 1
- 31
- 41

Zulan
- 21,896
- 6
- 49
- 109
9
I landed on this SO page as I was using CLion with Rust.
For Rust I was able to add the command line arguments to the end of the Run\Edit Configurations\Command
. Notice the required --
.
I got this tip from Jetbrains.
For C, it was Run\Edit Configurations\Program Arguments
, as @Zulan said.

rustyMagnet
- 3,479
- 1
- 31
- 41
-
1
-
so, the `program arguments == command line arguments`, because in latest version I can only see that. – bim Oct 11 '22 at 15:23