class_docstr: A collection of options, a dictionary with object-like access.
  
  Normally accessed via static functions in the `tornado.options` module,
  which reference a global instance.
class_docstr_tok: ["A","collection","of","options",",","a","dictionary","with","object-like","access",".","Normally","accessed","via","static","functions","in","the","`","tornado.options","`","module",",","which","reference","a","global","instance","."]
docstr: Parses all options given on the command line (defaults to
  `sys.argv`).
  
  Options look like ``--option=value`` and are parsed according
  to their ``type``. For boolean options, ``--option`` is
  equivalent to ``--option=true``
  
  If the option has ``multiple=True``, comma-separated values
  are accepted. For multi-value integer options, the syntax
  ``x:y`` is also accepted and equivalent to ``range(x, y)``.
  
  Note that ``args[0]`` is ignored since it is the program name
  in `sys.argv`.
  
  We return a list of all arguments that are not parsed as options.
  
  If ``final`` is ``False``, parse callbacks will not be run.
  This is useful for applications that wish to combine configurations
  from multiple sources.
code: def parse_command_line(
      self, args: Optional[List[str]] = None, final: bool = True
  ) -> List[str]:
      """Parses all options given on the command line (defaults to
      `sys.argv`).
  
      Options look like ``--option=value`` and are parsed according
      to their ``type``. For boolean options, ``--option`` is
      equivalent to ``--option=true``
  
      If the option has ``multiple=True``, comma-separated values
      are accepted. For multi-value integer options, the syntax
      ``x:y`` is also accepted and equivalent to ``range(x, y)``.
  
      Note that ``args[0]`` is ignored since it is the program name
      in `sys.argv`.
  
      We return a list of all arguments that are not parsed as options.
  
      If ``final`` is ``False``, parse callbacks will not be run.
      This is useful for applications that wish to combine configurations
      from multiple sources.
  
      """
      if args is None:
          args = sys.argv
      remaining = []  # type: List[str]
      for i in range(1, len(args)):
          # All things after the last option are command line arguments
          if not args[i].startswith("-"):
              remaining = args[i:]
              break
          if args[i] == "--":
              remaining = args[i + 1 :]
              break
          arg = args[i].lstrip("-")
          name, equals, value = arg.partition("=")
          name = self._normalize_name(name)
          if name not in self._options:
              self.print_help()
              raise Error("Unrecognized command line option: %r" % name)
          option = self._options[name]
          if not equals:
              if option.type == bool:
                  value = "true"
              else:
                  raise Error("Option %r requires a value" % name)
          option.parse(value)
  
      if final:
          self.run_parse_callbacks()
  
      return remaining
  
imports: import datetime
  import numbers
  import re
  import sys
  import os
  import textwrap
  from tornado.escape import _unicode, native_str
  from tornado.log import define_logging_options
  from tornado.util import basestring_type, exec_in
  from typing import Any, Iterator, Iterable, Tuple, Set, Dict, Callable, List, TextIO, Optional
label_desc: Use image node_id 14 for calling the OptionParser obj's underlying member method code with example usage: obj.parse_command_line(args, final) and returns: remaining