#NEWLINE# def main( ) : #NEWLINE# #INDENT# parser = argparse . ArgumentParser ( ) #NEWLINE# parser . add_argument ( '-i' , '--include' , help = 'ranges of characters to include' , metavar = 'range' , nargs = '+' ) #NEWLINE# parser . add_argument ( '-e' , '--exclude' , help = 'ranges of characters to exclude (applied after include)' , metavar = 'range' , nargs = '+' ) #NEWLINE# parser . add_argument ( '-d' , '--dstdir' , help = 'directory to write new files to' , metavar = 'dir' ) #NEWLINE# parser . add_argument ( '-b' , '--bump_version' , help = 'bump version (default true)' , metavar = 'bool' , type = bool , default = True ) #NEWLINE# parser . add_argument ( 'fonts' , help = 'fonts to subset' , metavar = 'font' , nargs = '+' ) #NEWLINE# args = parser . parse_args ( ) #NEWLINE# if args . exclude : #NEWLINE# #INDENT# args . exclude = tool_utils . parse_int_ranges ( ' ' . join ( args . exclude ) ) #NEWLINE# #UNINDENT# if args . include : #NEWLINE# #INDENT# args . include = tool_utils . parse_int_ranges ( ' ' . join ( args . include ) ) #NEWLINE# #UNINDENT# subset_fonts_cmap ( parser . fonts , args . dstdir , exclude = args . exclude , include = args . include , bump_version = args . bump_version )