@staticmethod
def format_prompt(prompt=None, default=None, enable_quit=False, quit_string
    ='q', quit_message='(enter q to Quit)'):
    """
        Format the message presented to the user during input prompting.

        Args:
            prompt (str): The message to ask the user.
            default (str, optional): The default answer if user does not provide explicit input.
            enable_quit (bool, optional): Flag to determine whether a Quit option will be presented.
            quit_string (str, optional): The string the user must input to quit (default is 'q').
            quit_message (str, optional): The message to the user explaining how to Quit.

        Returns:
            str: The formatted prompt string.
        """
    if prompt is None:
        return None
    prompt = prompt.rstrip()
    prompt = prompt.rstrip(':')
    if enable_quit:
        prompt = '{0} {1}'.format(prompt, quit_message)
    if default:
        prompt = '{0} [{1}]'.format(prompt, default)
    return '{0}: '.format(prompt)
