DDMAL / MEI2Volpiano

An MEI to Volpiano converter for CWMN or Neume MEI files.
MIT License
0 stars 0 forks source link

Help attribute #10

Closed napulen closed 3 years ago

napulen commented 3 years ago

https://github.com/DDMAL/MEI2Volpiano/blob/b785992972d896d8d63a328b85ebdbca961dc1a7/mei2volpiano.py#L100

The help parameter is intended as a plain English description of what is expected of this parameter. See example in the argparse documentation:

image

It's not really an error. By the way, argparse will generate error messages and usage messages automatically for you, so you can rely on those features.

Additionally, if the variable has a string, no need to format it, you can refer to it directly in the parameters sent to argparse:

parser.add_argument("mei_files", type=str, nargs="+", help=error)

In short:

kemalkongar commented 3 years ago

Argparse section has been redone and error clarified.