code: def run(self):
          
          args = self._process_flags()
  
          self.todofile = TodoFile.TodoFile(config().todotxt())
          self.todolist = TodoList.TodoList(self.todofile.read())
  
          try:
              (subcommand, args) = get_subcommand(args)
          except ConfigError as ce:
              error('Error: ' + str(ce) + '. Check your aliases configuration')
              sys.exit(1)
  
          if subcommand is None:
              CLIApplicationBase._usage()
  
          if self._execute(subcommand, args) == False:
              sys.exit(1)
          else:
              self._post_execute()
docs: Main entry function.