PyCharm “Run configuration” asking for “script parameters”

前端 未结 5 1361
隐瞒了意图╮
隐瞒了意图╮ 2021-02-07 07:55

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 ever

5条回答
  •  广开言路
    2021-02-07 08:22

    I'm doing this on a Mac, but hopefully this will be helpful for Windows or Linux.

    Go to Run > Edit Configurations There will be a dialog box that opens. Script: file you want to run (ending with .py) Script Parameters: the command line arguments Working Directory: directory where your project is.

    Hope this helps!

提交回复
热议问题