PyCharm“运行配置”要求“脚本参数” [英] PyCharm "Run configuration" asking for "script parameters"

查看:960
本文介绍了PyCharm“运行配置”要求“脚本参数”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在编写解析命令行参数的应用程序时,我想用各种参数运行它。

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

我不想创建运行配置对于我希望我的脚本要测试的每个可能的命令行参数。 PyCharm中有没有一种方法(我猜任何JetBrains IDE)可以在执行时生成一个运行配置,要求输入脚本参数

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?

我目前正在使用PyCharm 3.1(EAP)。

I am currently using PyCharm 3.1 (EAP).

推荐答案

目前唯一的可能是使用发布之前|显示此页面选项。

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

这篇关于PyCharm“运行配置”要求“脚本参数”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆