def add_argument(self, parser, bootstrap=False):
tmp_default = self.default<EOL>exclusive_grp = parser.add_mutually_exclusive_group()<EOL>self.default = True<EOL>args = self._get_argparse_names(parser.prefix_chars)<EOL>kwargs = self._get_argparse_kwargs(bootstrap)<EOL>exclusive_grp.add_argument(*args, **kwargs)<EOL>self.default = False<EOL>args = self._get_argparse_names(parser.prefix_chars)<EOL>kwargs = self._get_argparse_kwargs(bootstrap)<EOL>exclusive_grp.add_argument(*args, **kwargs)<EOL>self.default = tmp_default<EOL>
Add boolean item as an argument to the given parser.

        An exclusive group is created on the parser, which will add
        a boolean-style command line argument to the parser.

        Examples:
            A non-nested boolean value with the name 'debug' will result
            in a command-line argument like the following:

            '--debug/--no-debug'

        Args:
            parser (argparse.ArgumentParser): The parser to add this item to.
            bootstrap (bool): Flag to indicate whether you only want to mark
                this item as required or not.