Skip to content

Commit

Permalink
🚑 Fix default of --options
Browse files Browse the repository at this point in the history
  • Loading branch information
Freed-Wu committed Jul 23, 2023
1 parent e2616de commit 987342e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addon-info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "translate-shell",
"description": "Translate text by google, bing, youdaozhiyun, haici, stardict, openai, large language model of local machine, etc at same time from CLI, GUI (GNU/Linux, Android, macOS and Windows), REPL, python, shell and vim.",
"version": "0.0.30",
"version": "0.0.31",
"author": "Wu Zhenyu <wuzhenyu@ustc.edu>",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "translate-shell",
"version": "0.0.30",
"version": "0.0.31",
"description": "Translate text by google, bing, youdaozhiyun, haici, stardict, openai, large language model of local machine, etc at same time from CLI, GUI (GNU/Linux, Android, macOS and Windows), REPL, python, shell and vim.",
"author": "Wu Zhenyu <wuzhenyu@ustc.edu>",
"license": "GPLv3"
Expand Down
1 change: 1 addition & 0 deletions src/translate_shell/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def get_parser() -> ArgumentParser:
).complete = LANG_COMPLETE # type: ignore
parser.add_argument(
"--options",
default=[],
help="advanced usage, see "
"https://translate-shell.readthedocs.io/en/latest/resources/config.html "
". default: %(default)s",
Expand Down
2 changes: 1 addition & 1 deletion tests/txt/options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ options:
source languages. default: auto
--options OPTIONS advanced usage, see https://translate-
shell.readthedocs.io/en/latest/resources/config.html .
default: None
default: []

0 comments on commit 987342e

Please sign in to comment.