def prompt_recurse(clss, opts): v = Prompt.query("Recurse dir?", ("Yes", "No", "All")) if v is 2: opts.recurse = True return True elif v is 0: return True return False
def prompt_ignore(clss, opts): v = Prompt.query("Ignore dir?", ["No", "Yes"]) return v is 1