Commit d1b6f868 authored by Filippos Giannakos's avatar Filippos Giannakos
Browse files

Merge branch 'feature-autoversion' into develop

parents 8049444d 2e9bddbf
This diff is collapsed.
......@@ -39,3 +39,11 @@ def query_action(question, default="yes", action=None):
answer = query_yes_no(question, default)
if answer and action is not None:
action()
def query_user(question, default=""):
prompt = "[" + default + "]"
sys.stdout.write(question + prompt)
answer = raw_input()
if answer == "":
return default
return answer
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment