Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

passing arguments in python from command line as key value

import sys
filename = sys.argv[1]
args = dict([arg.split('=', maxsplit=1) for arg in sys.argv[2:]])
print filename
print args
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #passing #arguments #python #command #line #key
ADD COMMENT
Topic
Name
6+2 =