code: def fix_command(known_args):
      
      settings.init(known_args)
      with logs.debug_time('Total'):
          logs.debug(u'Run with settings: {}'.format(pformat(settings)))
          raw_command = _get_raw_command(known_args)
  
          try:
              command = types.Command.from_raw_script(raw_command)
          except EmptyCommand:
              logs.debug('Empty command, nothing to do')
              return
  
          corrected_commands = get_corrected_commands(command)
          selected_command = select_command(corrected_commands)
  
          if selected_command:
              selected_command.run(command)
          else:
              sys.exit(1)
docs: Fixes previous command. Used when `thefuck` called without arguments.