Jul-06-2022, 10:03 AM
Hi All ,
I need help in modifying a Script
I need help in python syntax , where I would like to take value from inline argument .
for e.g : lets say
1) I will pass an argument “-rundir my_name_folder “ in my command line
2) My script should detect an argument is passed : -rundir
3) Then it will store its value in some variable [ I am not sure of this part ] , value = my_name_folder
4) Then it will create a directory in current working directory with name my_name_folder
Thanks in advance
I need help in modifying a Script
I need help in python syntax , where I would like to take value from inline argument .
for e.g : lets say
1) I will pass an argument “-rundir my_name_folder “ in my command line
2) My script should detect an argument is passed : -rundir
3) Then it will store its value in some variable [ I am not sure of this part ] , value = my_name_folder
4) Then it will create a directory in current working directory with name my_name_folder
Thanks in advance