I have a prog who is filtering an image with a lot of parameters. The user has two choices :
-Running the script with default values
-Running the script manually (i.e choosing himself the parameters values)
What I would like to do is that if he wants, the users can keep the values he chose as new default values.
WIth stg like a question : "Do you want to keep those values as default? [Y/N]"
And the problem is that I have no idea how to do that....
So if anyone could help me, i'll be very grateful!
Are you stuck on how to accept the user's option or how to save the default parameters per user ?
To accept the user's option see one of these
If you are wondering how to save the parameters, then accept the params for the first time and then dump them onto a file with <key,value> pair like
RUN_ALGO=YES
TRANSFORM=NO et al.
Later, in the next run, look for this file and read the entries.