示例#1
0
 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
示例#2
0
 def prompt_ignore(clss, opts):
     v = Prompt.query("Ignore dir?", ["No", "Yes"])
     return v is 1