Perhaps an option in the prompt should be better, like:

"Which property do you want to set ? type 0 to exit"