Cope 2.5.0
My personal "standard library" of all the generally useful code I've written for various projects over the years
Loading...
Searching...
No Matches

◆ confirm()

bool Cope.misc.confirm ( str  prompt = 'Continue?',
bool  quit = False,
str  quit_msg = 'Exiting...',
bool  return_if_invalid = False,
bool  include_YN = True 
)

Promt the user to confirm via terminal whether to continue or not.

If given an invalid response, it will continue to ask, unless return_if_invalid is set to True.

Definition at line 103 of file misc.py.