Python Setting Command Line Arguments
Example for setting command line arguments
from optparse import OptionParser
parser = OptionParser()
parser.add_option("-f", "--filename", dest="filename", help="upload one FILE", metavar="FILE")
(options, args) = parser.parse_args()
input_filename = [str(options.filename)]
print 'Filename provided as input is', input_filename