def get_parsed_option(command_opts, opt_key, default=None):
 command_opt_value = getattr(command_opts, opt_key, default)
 if command_opt_value:
  command_opt_value = listfy(command_opt_value)
 return command_opt_value

def get_parsed_option ( command_opts , opt_key , default = None ) : command_opt_value = getattr ( command_opts , opt_key , default ) if command_opt_value : command_opt_value = listfy ( command_opt_value ) return command_opt_value
extract user command option and parse it .