code: def get_text_or_url(args):
      
      redirect_mode = args.bang or args.search or args.lucky
      if redirect_mode or args.url:
          return 'url'
      else:
          return 'text'
docs: Determine if we need text or url output