title: How do I return a value when @click.option is used to pass a command line argument to a function?
body: <p>I am trying to use <a href="https://pypi.python.org/pypi/click" rel="noreferrer"><code>click</code></a> python package to pass a command line argument to a function. The example from official documentation works as explained. But nowhere in the documentation is it mentioned how to return a value back. None of the functions in the documentation returns a value, so I don't understand how to do this. </p>
  
  <p>Given example at documentation:</p>
  
  <pre><code>import click
  
  @click.command()
  @click.option('--count', default=3, help='Number of greetings.')
  
  def hello(count):
      """Simple program that greets NAME for a total of COUNT times."""
      for x in range(count):
          click.echo('Hello')
  
  if __name__ == '__main__':
      hello()
  </code></pre>
  
  <p>What I want to do:</p>
  
  <pre><code>import click
  
  @click.command()
  @click.option('--count', default=3, help='Number of greetings.')
  
  def hello(count):
      """Simple program that greets NAME for a total of COUNT times."""
      for x in range(count):
          click.echo('Hello')
      return "hello hi"
  
  if __name__ == '__main__':
      print(hello())
  </code></pre>
  
  <p>"hello hi" is not returned as output on console. Can someone tell me how to achieve this?</p>