'--unicode_data_file', nargs='?', type=str, help='The UnicodeData.txt file to read.') PARSER.add_argument('-e', '--east_asian_width_file', nargs='?', type=str, help='The EastAsianWidth.txt file to read.') PARSER.add_argument('-a', '--show_added_characters', action='store_true', help='Show characters which were added in detail.') PARSER.add_argument('-m', '--show_missing_characters', action='store_true', help='Show characters which were removed in detail.') PARSER.add_argument( '-c', '--show_changed_characters', action='store_true', help='Show characters whose width was changed in detail.') ARGS = PARSER.parse_args() if ARGS.unicode_data_file: unicode_utils.fill_attributes(ARGS.unicode_data_file) if ARGS.east_asian_width_file: unicode_utils.fill_east_asian_widths(ARGS.east_asian_width_file) check_charmap(ARGS.old_utf8_file, ARGS.new_utf8_file) check_width(ARGS.old_utf8_file, ARGS.new_utf8_file)
PARSER.add_argument( '-u', '--unicode_data_file', nargs='?', type=str, help='The UnicodeData.txt file to read.') PARSER.add_argument( '-e', '--east_asian_width_file', nargs='?', type=str, help='The EastAsianWidth.txt file to read.') PARSER.add_argument( '-a', '--show_added_characters', action='store_true', help='Show characters which were added in detail.') PARSER.add_argument( '-m', '--show_missing_characters', action='store_true', help='Show characters which were removed in detail.') PARSER.add_argument( '-c', '--show_changed_characters', action='store_true', help='Show characters whose width was changed in detail.') ARGS = PARSER.parse_args() if ARGS.unicode_data_file: unicode_utils.fill_attributes(ARGS.unicode_data_file) if ARGS.east_asian_width_file: unicode_utils.fill_east_asian_widths(ARGS.east_asian_width_file) check_charmap(ARGS.old_utf8_file, ARGS.new_utf8_file) check_width(ARGS.old_utf8_file, ARGS.new_utf8_file)