I am trying to understand this side of the python where we execute Python from commandline and input a specific file or asking to perform specific task. Presently I wanted to input a file like this
# input a file
c:>python main_file.py -f input1.txt
# output a file
c:>python main_file.py -o output1.txt
-fand-ostandard command line arguments topythonor just yourmain_file.pyscript?-for-ocommands).sys.argv, for starters just have yourmain_file.pyscript beprint(sys.argv)to see what it contains.