def assert_valid_call(prompt, default, cli_flag, force_interactive):
 msg = 'Invalid IDisplay call for this prompt:\n{0}'.format(prompt)
 if cli_flag:
  msg += '\nYou can set an answer to this prompt with the {0} flag'.format(cli_flag)
 assert ((default is not None) or force_interactive), msg

def assert_valid_call ( prompt , default , cli_flag , force_interactive ) : msg = 'Invalid IDisplay call for this prompt:\n{0}' . format ( prompt ) if cli_flag : msg += '\nYou can set an answer to this prompt with the {0} flag' . format ( cli_flag ) assert ( ( default is not None ) or force_interactive ) , msg
verify that provided arguments is a valid idisplay call .