@@ -39,7 +39,7 @@ def _get_args(args=None):
3939 )
4040
4141 parser .add_argument (
42- '-o' , '--output ' ,
42+ '-o' , '--output_path ' ,
4343 action = 'store' ,
4444 help = (
4545 'output file or directory. '
@@ -563,7 +563,7 @@ def _make_goadb_content(glyph_order, glyph_name_dict):
563563def make_goadb (input_ufo , include_template_glyphs = False ):
564564 '''
565565 Make a GOADB from an input UFO.
566- Optionally, template glyphs can be included .
566+ Optionally, include (un-filled) template glyphs .
567567 '''
568568 f = Font (input_ufo )
569569 glyph_order = get_glyph_order (f , include_template_glyphs )
@@ -576,12 +576,13 @@ def write_goadb(goadb_content, output_path=None):
576576 '''
577577 Write the GOADB to an output file or folder.
578578 '''
579- if output_path and output_path .is_file ():
580- with open (output_path , 'w' ) as blob :
581- blob .write (goadb_content + '\n ' )
582- elif output_path and output_path .is_dir ():
583- with open (output_path / 'GlyphOrderAndAliasDB' , 'w' ) as blob :
584- blob .write (goadb_content + '\n ' )
579+ if output_path :
580+ if output_path .is_dir ():
581+ with open (output_path / 'GlyphOrderAndAliasDB' , 'w' ) as blob :
582+ blob .write (goadb_content + '\n ' )
583+ else :
584+ with open (output_path , 'w' ) as blob :
585+ blob .write (goadb_content + '\n ' )
585586 else :
586587 print (goadb_content )
587588
0 commit comments