cfonts_to_py.py improved help message

pull/7/head
Peter Hinch 2016-04-05 12:02:04 +01:00
rodzic e8ec344e5d
commit 9f4870a9ce
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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()