dictionary: support extracting words from all documents read from the command line in the 'from document' mode