Skip to content

Commit

Permalink
Merge pull request #979 from xxyzz/arg
Browse files Browse the repository at this point in the history
Set "--edition" as a required argument
  • Loading branch information
xxyzz authored Jan 8, 2025
2 parents 4525067 + be73568 commit b4b8b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ The following command-line options can be used to control its operation:
* --all-languages: extract words for all available languages
* --language-code LANGUAGE_CODE: extracts the given language (this option may be specified multiple times; defaults to dump file language code and `mul`(Translingual))
* --language-name LANGUAGE_NAME: Similar to `--language-code` except this option accepts language name
* --edition LANGUAGE_CODE: specifies the language code for the Wiktionary edition that the dump file is for (defaults to "en"; other supported editions are listed in `-h` help descriptions)
* --edition LANGUAGE_CODE: specifies the language code for the Wiktionary edition that the dump file is for (supported editions are listed in `-h` help descriptions)
* --skip-extraction: Used to create a database file from the dump file without waiting for the extraction process to complete.
* --all: causes all data to be captured for the selected languages
* --translations: causes translations to be captured
Expand Down
2 changes: 1 addition & 1 deletion src/wiktextract/wiktwords.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def main():
"--dump-file-language-code",
"--edition",
type=str,
default="en",
required=True,
choices=sorted(
[
p.stem
Expand Down

0 comments on commit b4b8b9f

Please sign in to comment.