title: Python click show global option in help text of Sub-Command
body: <p>I'm trying to figure out how to get help for global options shown in the help messages of sub-commands.</p>
  <p>I created a simplistic cli:</p>
  <pre class="lang-py prettyprint-override"><code>#!/usr/bin/env python
  import click
  
  
  @click.group()
  @click.option(&quot;-l&quot;, &quot;--log-level&quot;, help=&quot;Set log level.&quot;)
  def cli(log_level):
      &quot;CLI toolbox&quot;
      print(&quot;root&quot;)
  
  
  @cli.group()
  def admin():
      print(&quot;admin&quot;)
  
  
  @admin.command()
  def invite():
      print(&quot;invite&quot;)
  
  
  if __name__ == &quot;__main__&quot;:
      cli()
  </code></pre>
  <p>Unfortunately the global options are not shown on the help screens of sub commands:</p>
  <pre><code>./cli.py --help
  Usage: cli.py [OPTIONS] COMMAND [ARGS]...
  
    CLI toolbox
  
  Options:
    -l, --log-level TEXT  Set log level. &lt;-- Option listed on global command
    --help                Show this message and exit.
  
  Commands:
    admin
  </code></pre>
  <pre><code>./cli.py admin --help
  root
  Usage: cli.py admin [OPTIONS] COMMAND [ARGS]...
  
  Options:
       &lt;- Option missing on command.
    --help  Show this message and exit.
  
  Commands:
    invite
  </code></pre>