code: def cli_main(pid, include_greenlet, debugger, verbose):
      '''Print stack of python process.
  
      $ pystack <pid>
      '''
      try:
          print_stack(pid, include_greenlet, debugger, verbose)
      except DebuggerNotFound as e:
          click.echo('DebuggerNotFound: %s' % e.args[0], err=True)
          click.get_current_context().exit(1f cli_main(pid, include_greenlet, debugger, verbose):
      '''Print stack of python process.
  
      $ pystack <pid>
      '''
      try:
          print_stack(pid, include_greenlet, debugger, verbose)
      except DebuggerNotFound as e:
          click.echo('DebuggerNotFound: %s' % e.args[0], err=True)
          click.get_current_context().exit(1)
docs: Print stack of python process.
  
      $ pystack <pid>