script-server icon indicating copy to clipboard operation
script-server copied to clipboard

Regarding the issue that the python script could not parse the command line arguments correctly

Open lengyuezanghua-logs opened this issue 11 months ago • 4 comments

As shown in the image, when I call the python script in powershell and add the relevant parameters, the python script executes normally

Image However, when I configured the command line parameters, the python script could not parse the parameters given in the command line properly

Image I'd like to know the solution to this problem, here is the log file of the run

Image

lengyuezanghua-logs avatar Feb 03 '25 14:02 lengyuezanghua-logs

Hi @lengyuezanghua-logs you are using wrong parameter in script server config. In your command-line you have -u, but in script server it's --u

bugy avatar Feb 14 '25 13:02 bugy

Thank you very much for your reply, but after the modification still can't solve this problem, I want to continue to ask for your help, the following picture is my script parameter configuration information

Image

This is the JSFinder.py parameter configuration information Image

This is the operational information of the scripting platform, and it is clear that JSFinder.py is not parsing the command line content properly. Image

This is the log information for the scripting platform.

Image

I don't understand what's wrong, here's the github project address for JSFinder.py https://github.com/Threezh1/JSFinder

lengyuezanghua-logs avatar Feb 17 '25 12:02 lengyuezanghua-logs

Hey @lengyuezanghua-logs, I couldn't reproduce it on linux, everything works for me. Once I find some windows machine, I'll try again In the meanwhile, can you try putting the value in quotes? single or double-ones On the UI

bugy avatar Feb 19 '25 15:02 bugy

Hey @lengyuezanghua-logs, I couldn't reproduce it on linux, everything works for me. Once I find some windows machine, I'll try again In the meanwhile, can you try putting the value in quotes? single or double-ones On the UI

Thanks again for your reply, and sorry that your suggestion of putting values in single or double quotes didn't solve the problem. But I got inspiration from your reply, deploy your project with a linux system, the script works fine in linux, but it's not very convenient for me. Because I use the windows operating system most of the time in my work, if I deploy in linux, I still need to use a VM to open the linux environment, which is too troublesome. If later you have solved how to run your project properly on Windows, I hope to get your reply in time. Thank you for helping me, love comes from China.

Image

lengyuezanghua-logs avatar Feb 21 '25 15:02 lengyuezanghua-logs