0

there are some scripts that you have to run them from command line like

python run.py -u alex__a -p 123 -v -f

I want to work with them inside my code I don't know whats the name of them so I wasn't able to google about my question . sorry if it't so simple

1 Answers1

0

You are looking for sys.argv to access them. Here is a tutorial:

https://www.pythonforbeginners.com/system/python-sys-argv

If you want to get more serious and use a package to do this more elegantly, you should research the argparse package which is excellent and very intuitive to use.

AirSquid
  • 3,851
  • 2
  • 4
  • 17