ap=argparse.ArgumentParser(description='auto generate lvGL font files from fonts')
ap.add_argument('config',type=str,help='config file to use')
ap.add_argument('-e','--enable',type=str,action='append',help='optional feature to enable in font generation',default=[],metavar='features',dest='features')
ap.add_argument('-f','--font',type=str,action='append',help='Choose specific fonts to generate (default: all)',default=[])
args=ap.parse_args()
ifnotos.path.exists(args.config):
sys.exit(f'Error: the config file {args.config} does not exist.')
ifnotos.access(args.config,os.R_OK):
sys.exit(f'Error: the config file {args.config} is not accessable (permissions?).')