Read from file in Edit Configurations

Answered

In order to make use of the in built CLions run/debugging tools I am passing command line arguments to my executable as a space separated vector input to the 'Program arguments:' option of the 'Run -> Run/Debug Configurations' window.

I would like to be able to read this vector of arguments directly from a file, rather than inputting them manually i.e. edit/save external file pars_template.csv then pass the following to Program arguments:

`$(sed -n '2p' ../Params/pars_template.csv)`

This doesn't work!

Any ideas on how I could run a program _through CLion_ accessing external program arguments?

 

Thanks!

 

0
1 comment

Hello! Fell free to comment or upvote https://youtrack.jetbrains.com/issue/CPP-3153 in order to get updates. We plan to include it into the 2019.2 roadmap.

0

Please sign in to leave a comment.