kopia lustrzana https://github.com/peterhinch/micropython-samples
cfonts_to_py.py improved help message
rodzic
e8ec344e5d
commit
9f4870a9ce
|
@ -165,7 +165,8 @@ def load_c(sourcefiles, destfile):
|
|||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(__file__, description =
|
||||
"Convert C fonts generated by GLCD font creator to Python.\nSample usage:\n ./cfonts_to_py Arial16x16.c ubuntu5x7.py\nProduces fonts.py")
|
||||
"Utility for producing a fonts file for the tft module.\nConvers C fonts generated by GLCD font creator to Python.\nSample usage:\n./cfonts_to_py.py Arial16x16.c Ubuntu_Medium17x19.c\nProduces fonts.py",
|
||||
formatter_class = argparse.RawDescriptionHelpFormatter)
|
||||
parser.add_argument('infiles', metavar ='N', type = str, nargs = '+', help = 'input file paths')
|
||||
parser.add_argument("--outfile", "-o", default = 'fonts.py', help = "Path and name of output file", required = False)
|
||||
args = parser.parse_args()
|
||||
|
|
Ładowanie…
Reference in New Issue