diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -22,16 +22,16 @@ func main() { flag.Parse() - if dict == nil { + if *dict == "" { log.Fatal("The -dictionary flag cannot be an empty string. (If not provided, it defaults to dictionary.sqlite3.)") } - if rawDict == nil { + if *rawDict == "" { log.Fatal("The -rawDictionary flag cannot be an empty string. (If not provided, it defaults to aw-wiktextract-data.jsonl.)") } - if deckName == nil { + if *deckName == "" { log.Fatal("The -deck flag must be provided (name of the deck where Anki cards will be created).") } - if modelName == nil { + 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.") } |
