mirror of
https://github.com/yihong0618/bilingual_book_maker.git
synced 2025-06-04 02:20:18 +00:00
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:
parent
1a556333f9
commit
c1d2c97191
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user