Improve helper message (#74)

* Improve helper message

Since too many available languages, use metavar at the first line

* Improve helper message for model

* Apply formatter

---------

Co-authored-by: Hsieh Chin Fan <pham@topo.tw>
This commit is contained in:
Hsieh Chin Fan 2023-03-06 21:23:41 +08:00 committed by GitHub
parent 1a556333f9
commit c1d2c97191
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -265,7 +265,8 @@ if __name__ == "__main__":
type=str,
default="chatgpt",
choices=["chatgpt", "gpt3"], # support DeepL later
help="Which model to use",
metavar="MODEL",
help="Which model to use, available: {%(choices)s}",
)
parser.add_argument(
"--language",
@ -273,7 +274,8 @@ if __name__ == "__main__":
choices=sorted(LANGUAGES.keys())
+ sorted([k.title() for k in TO_LANGUAGE_CODE.keys()]),
default="zh-hans",
help="language to translate to",
metavar="LANGUAGE",
help="language to translate to, available: {%(choices)s}",
)
parser.add_argument(
"--resume",