old_contents: # -*- coding: utf-8 -*-
  
  """
     ________    ______
    / ____/ /   / ____/
   / /   / /   / /_
  / /___/ /___/ __/
  \____/_____/_/
  
  Command line tool to search snippets on Commandlinefu.com
  
  Usage:
    clf --browse [options]
    clf <command> [options]
    clf <keyword> <keyword>... [options]
  
  Options:
    -h, --help     Show this help.
    -v, --version  Show version.
    -c, --color    Enable colorized output.
    -b, --browse   Browse the Commandlinefu.com archive.
    --order=ORDER  The order output (votes|date) [default: votes].
    --proxy=PROXY  The proxy used to perform requests.
  
  Examples:
    clf tar
    clf python server
    clf tar --proxy=http://127.0.0.1:8080
    clf --browse --order=date
  """
  
  from docopt import docopt
  import os
  from pygments import highlight
  from pygments.lexers.shell import BashLexer
  from pygments.formatters import TerminalFormatter
  
  from clf.constants import VERSION, BLUE, END
  from clf.api import Clf
  
  __all__ = ['Clf']
  
  
  def run():
      arguments = docopt(__doc__, version=VERSION)
  
      f = Clf(format="json",
              order=arguments['--order'],
              proxy=arguments['--proxy'])
  
      if arguments['--browse']:
          commands = f.browse()
      elif arguments['<command>']:
          commands = f.command(arguments['<command>'])
      elif arguments['<keyword>']:
          commands = f.search(arguments['<keyword>'])
  
      for command in commands:
          if (arguments['--color']) or (os.getenv('CLF_COLOR')):
              output = '{}# {}{}\n'.format(BLUE, command.summary, END)
              output += highlight(command.command,
                                  BashLexer(),
                                  TerminalFormatter(bg="dark"))
          else:
              output = '# {}\n'.format(command.summary)
              output += command.command + "\n"
  
          print(output)
  
  if __name__ == '__main__':
      run()
  
new_contents: # -*- coding: utf-8 -*-
  
  """
     ________    ______
    / ____/ /   / ____/
   / /   / /   / /_
  / /___/ /___/ __/
  \____/_____/_/
  
  Command line tool to search snippets on Commandlinefu.com
  
  Usage:
    clf --browse [options]
    clf <command> [options]
    clf <keyword> <keyword>... [options]
  
  Options:
    -h, --help     Show this help.
    -v, --version  Show version.
    -c, --color    Enable colorized output.
    -b, --browse   Browse the Commandlinefu.com archive.
    --order=ORDER  The order output (votes|date) [default: votes].
    --proxy=PROXY  The proxy used to perform requests.
  
  Examples:
    clf tar
    clf python server
    clf tar --proxy=http://127.0.0.1:8080
    clf --browse --order=date
  """
  
  from docopt import docopt
  import os
  from pygments import highlight
  from pygments.lexers.shell import BashLexer
  from pygments.formatters import TerminalFormatter
  
  from clf.constants import VERSION, BLUE, END
  from clf.api import Clf
  
  __all__ = ['Clf']
  
  
  def run():
      arguments = docopt(__doc__, version=VERSION)
  
      f = Clf(format="json",
              order=arguments['--order'],
              proxy=arguments['--proxy'])
  
      if arguments['--browse']:
          commands = f.browse()
      elif arguments['<command>']:
          commands = f.command(arguments['<command>'])
      elif arguments['<keyword>']:
          commands = f.search(arguments['<keyword>'])
  
      if (arguments['--color']) or (os.getenv('CLF_COLOR')):
          def get_output(command):
              detail = highlight(command.command,
                                 BashLexer(), TerminalFormatter(bg="dark"))
              return '{}# {}{}\n{}\n'.format(BLUE, command.summary, END, detail)
      else:
          def get_output(command):
              return '# {}\n{}\n'.format(command.summary, command.command)
  
      for command in commands:
          print(get_output(command))
  
  if __name__ == '__main__':
      run()
  
subject: Deal with case no result is returned