Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm "Run configuration" asking for "script parameters"

While writing an application parsing command line arguments I would like to run it with various parameters.

I don't want to create a Run Configuration for every possible command line argument that I want my script to test with. Is there a way in PyCharm (and I guess with any JetBrains IDE) to make a Run Configuration that asks for the Script parameters when executed?

I am currently using PyCharm 3.1 (EAP).

like image 618
Paidhi Avatar asked Jan 01 '14 12:01

Paidhi


2 Answers

Currently the only possibility is to use the "Before launch | Show this page" option.

like image 155
yole Avatar answered Oct 21 '22 18:10

yole


I've found today that now is possible to ask for parameters using the "Prompt" macro on the "Run configuration" parameters field.

https://www.jetbrains.com/help/pycharm/code-running-assistance-tutorial.html#parameter-with-macros

like image 23
Juan Carlos Arevalo Avatar answered Oct 21 '22 19:10

Juan Carlos Arevalo