code: def add_command_line_options_argparse(cls, argparser):
          
          import argparse
  
          class SetParameter(argparse.Action):
              """callback object for ArgumentParser"""
  
              def __call__(self, parser, namespace, value, option_string=None):
                  cls.config[option_string] = value
                  if option_string == "--stomp-conf":
                      cls.load_configuration_file(value)
  
          argparser.add_argument(
              "--stomp-host",
              metavar="HOST",
              default=cls.defaults.get("--stomp-host"),
              help="Stomp broker address, default '%(default)s'",
              type=str,
              action=SetParameter,
          )
          argparser.add_argument(
              "--stomp-port",
              metavar="PORT",
              default=cls.defaults.get("--stomp-port"),
              help="Stomp broker port, default '%(default)s'",
              type=int,
              action=SetParameter,
          )
          argparser.add_argument(
              "--stomp-user",
              metavar="USER",
              default=cls.defaults.get("--stomp-user"),
              help="Stomp user, default '%(default)s'",
              type=str,
              action=SetParameter,
          )
          argparser.add_argument(
              "--stomp-pass",
              metavar="PASS",
              default=cls.defaults.get("--stomp-pass"),
              help="Stomp password",
              type=str,
              action=SetParameter,
          )
          argparser.add_argument(
              "--stomp-prfx",
              metavar="PRE",
              default=cls.defaults.get("--stomp-prfx"),
              help="Stomp namespace prefix, default '%(default)s'",
              type=str,
              action=SetParameter,
          )
          argparser.add_argument(
              "--stomp-conf",
              metavar="CNF",
              default=cls.defaults.get("--stomp-conf"),
              help="Stomp configuration file containing connection information, disables default values",
              type=str,
              action=SetParameter,
          )
docs: function to inject command line parameters into
          a Python ArgumentParser.