code: def main():
      
      if os.environ.get('DEBUG'):
          logging.basicConfig(level=logging.DEBUG)
      else:
          logging.basicConfig(level=logging.INFO)
          # botocore info is spammy
          logging.getLogger('botocore').setLevel(logging.ERROR)
  
      cli_arguments = fix_hyphen_commands(docopt(__doc__, version=version))
  
      # at least one of these must be enabled, i.e. the value is 'True'... but unfortunately
      #  `docopts` doesn't give you the hierarchy... so given 'gen-sample cfn', there are
      #  TWO enabled items in the list, 'gen-sample' and 'cfn'
      possible_commands = [command for command, enabled in cli_arguments.items() if enabled]
  
      command_class = find_command_class(possible_commands)
      if command_class:
          command_class(cli_arguments).execute()
      else:
          LOGGER.error("class not found for command '%s'", possible_commands)
docs: Provide main CLI entrypoint.