<span class="gI">Hello,<br><br>I'm using optional input arguments for my python project. However, arguments parsing is different when I use 'Run project' feature and when I run my project from terminal. In the first case, if no input arguments are given, sys.argv is an list of two elements, in the terminal there will be only one element in the list. Also, I can't use argparse package with 'Run project'. Is that expected behavior? And is there any way to make those two approaches to work the same way?<br>
<br>The way I use 'Run project' (assuming main project file is called </span><span class="gI">my_program.py and it is located at </span><span class="gI">D:\...\WorkingDir)</span><span class="gI">.<br><br></span><div style="margin-left:40px">
<span class="gI">Command line: my_program.py</span><br><span class="gI">Working directory: D:\...\WorkingDir</span><br><span class="gI"></span></div><span class="gI"><br>Thanks. Best,<br>Katya<br clear="all"></span><br><br>