def parse_args(self, *args, **kwargs):
        if _debug: ArgumentParser._debug("parse_args")

        # pass along to the parent class
        result_args = argparse.ArgumentParser.parse_args(self, *args, **kwargs)

        # check to dump labels
        if result_args.buggers:
            loggers = sorted(logging.Logger.manager.loggerDict.keys())
            for loggerName in loggers:
                sys.stdout.write(loggerName + '\n')
            sys.exit(0)

        # check for debug
        if result_args.debug is None:
            # --debug not specified
            bug_list = []
        elif not result_args.debug:
            # --debug, but no arguments
            bug_list = ["__main__"]
        else:
            # --debug with arguments
            bug_list = result_args.debug

        # attach any that are specified
        if result_args.color:
            for i, debug_name in enumerate(bug_list):
                ConsoleLogHandler(debug_name, color=(i % 6) + 2)
        else:
            for debug_name in bug_list:
                ConsoleLogHandler(debug_name)

        # return what was parsed
        return result_args

#
#   ConfigArgumentParser
#
Trait initializer.
dataset/ETHPy150Open JoelBender/bacpypes/py27/bacpypes/consolelogging.py/ArgumentParser.parse_args--crossover with--dataset/ETHPy150Open enthought/mayavi/examples/mayavi/explorer/explorer3d.py/ExplorerPlugin._perspectives_default