@staticmethod
def _convert_flag_text_to_argument_name(flag_text):
    """This just emulates argparse's underlying logic.

        :type flag_text: str
        :param flag_text: e.g. `--no-hex-string-scan`
        :return: `no_hex_string_scan`
        """
    return flag_text[2:].replace('-', '_')
