Oct-10-2017, 11:42 AM
(This post was last modified: Oct-10-2017, 11:42 AM by gruntfutuk.)
This will give you a good start.
#!/usr/bin/env python # reading arguments given on the command line when script invoked # (if invoked with nothing after script name, will generate a failure) import sys # import module that provides command line arguments x = sys.argv # assign to x a list of the command line arguments print(x[1]) # print the 2nd argument (first will be name of involved script)
I am trying to help you, really, even if it doesn't always seem that way