code: def main(argv: Sequence[str]) -> None:
      """Execute the Bokeh command.
  
      Args:
          argv (seq[str]) : a list of command line arguments to process
  
      Returns:
          None
  
      The first item in ``argv`` is typically "bokeh", and the second should
      be the name of one of the available subcommands:
  
      * :ref:`info <bokeh.command.subcommands.info>`
      * :ref:`json <bokeh.command.subcommands.json>`
      * :ref:`sampledata <bokeh.command.subcommands.sampledata>`
      * :ref:`secret <bokeh.command.subcommands.secret>`
      * :ref:`serve <bokeh.command.subcommands.serve>`
      * :ref:`static <bokeh.command.subcommands.static>`
  
      """
      if len(argv) == 1:
          die(
              "ERROR: Must specify subcommand, one of: %s"
              % nice_join([x.name for x in subcommands.all])
          )
  
      parser = argparse.ArgumentParser(
          prog=argv[0],
          epilog="See '<command> --help' to read about a specific subcommand.",
      )
  
      parser.add_argument(
          "-v", "--version", action="version", version=__version__
      )
  
      subs = parser.add_subparsers(help="Sub-commands")
  
      for cls in subcommands.all:
          subparser = subs.add_parser(cls.name, help=cls.help)
          subcommand = cls(parser=subparser)
          subparser.set_defaults(invoke=subcommand.invoke)
  
      args = parser.parse_args(argv[1:])
      try:
          ret = args.invoke(args)
      except Exception as e:
          if settings.dev:
              raise
          else:
              die("ERROR: " + str(e))
  
      if ret is False:
          sys.exit(1)
      elif ret is not True and isinstance(ret, int) and ret != 0:
          sys.exit(ret)
  
file_path: bokeh/src/bokeh/command/bootstrap.py
imports: from __future__ import annotations
  import logging
  import argparse
  import sys
  from typing import Sequence
  from bokeh import __version__
  from bokeh.settings import settings
  from bokeh.util.strings import nice_join
  from .None import subcommands
  from .util import die
label_desc: Use image node_id 1 for calling a global function with example usage: main(argv) without return types