french-wiktionary-flashcards

Easily create Anki flashcards from Wiktionary data.
Log | Files | Refs | README

commit 03751334764661fdb6b1ca079f6b4bf8c0f12968
parent fd50a9d9b9e0ba108e001dc248319de696ad6546
Author: David Schlachter <mba-debian-git@schlachter.ca>
Date:   Tue, 29 Sep 2026 13:21:16 -0400

Change my mind about formatting for some long lines

Diffstat:
Mmain.go | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/main.go b/main.go @@ -49,14 +49,10 @@ func main() { flag.Parse() if *dict == "" { - log.Fatal( - "The -dictionary flag cannot be empty. (Defaults to dictionary.sqlite3.)", - ) + log.Fatal("The -dictionary flag cannot be empty. (Defaults to dictionary.sqlite3.)") } if *rawDict == "" { - log.Fatal( - "The -rawDictionary flag cannot be empty. (Defaults to raw-wiktextract-data.jsonl.)", - ) + log.Fatal("The -rawDictionary flag cannot be empty. (Defaults to raw-wiktextract-data.jsonl.)") } else if *rawDict == "raw-wiktextract-data.jsonl" { if _, err := os.Stat("./raw-wiktextract-data.jsonl"); errors.Is(err, os.ErrNotExist) { log.Fatal("Could not find raw dictionary data file! You can get this by downloading and gunzipping https://kaikki.org/frwiktionary/raw-wiktextract-data.jsonl.gz.") @@ -66,9 +62,7 @@ func main() { log.Fatal("The -deck flag must be provided (name of the deck where Anki cards will be created).") } if *modelName == "" { - log.Fatal( - "The -model flag must be provided. This is the name of the card type ('model') for any Anki cards created by this program. This appears under 'Type' on the dialog for creating new cards in Anki.", - ) + log.Fatal("The -model flag must be provided. This is the name of the card type ('model') for any Anki cards created by this program. This appears under 'Type' on the dialog for creating new cards in Anki.") } db, err := sql.Open("sqlite3", *dict)