@classmethod
def AddCommandLineArguments(cls, argument_group, category=None, names=None):
    """Adds command line arguments to a configuration object.

    Args:
      argument_group (argparse._ArgumentGroup|argparse.ArgumentParser):
          argparse group.
      category (Optional[str]): category of helpers to apply to
          the group, such as storage, output, where None will apply the
          arguments to all helpers. The category can be used to add arguments
          to a specific group of registered helpers.
      names (Optional[list[str]]): names of argument helpers to apply,
          where None will apply the arguments to all helpers.
    """
    for helper_name, helper_class in sorted(cls._helper_classes.items()):
        if (category and helper_class.CATEGORY != category or names and 
            helper_name not in names):
            continue
        helper_class.AddArguments(argument_group)
