diff --git a/stcgal/frontend.py b/stcgal/frontend.py index 0f058f6..da151c7 100644 --- a/stcgal/frontend.py +++ b/stcgal/frontend.py @@ -209,8 +209,8 @@ class StcGal: def cli(): # check arguments parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter, - description="stcgal %s - an STC MCU ISP flash tool\n" + - "(C) 2014-2017 Grigori Goronzy\nhttps://github.com/grigorig/stcgal" %stcgal.__version__) + description="stcgal {} - an STC MCU ISP flash tool\n".format(stcgal.__version__) + + "(C) 2014-2017 Grigori Goronzy\nhttps://github.com/grigorig/stcgal") parser.add_argument("code_image", help="code segment file to flash (BIN/HEX)", type=argparse.FileType("rb"), nargs='?') parser.add_argument("eeprom_image", help="eeprom segment file to flash (BIN/HEX)", type=argparse.FileType("rb"), nargs='?') parser.add_argument("-a", "--autoreset", help="cycle power automatically by asserting DTR", action="store_true")