Skip to content

Commit

Permalink
Improve helper message (yihong0618#74)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
typebrook and Hsieh Chin Fan authored Mar 6, 2023
1 parent 1a55633 commit c1d2c97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions make_book.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,15 +265,17 @@ def save_progress(self):
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",
type=str,
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",
Expand Down

0 comments on commit c1d2c97

Please sign in to comment.