}
$dir_mes = "in data directory " . $indexer->get_data_root();
if ($csv_filename == null) {
    $mes = "Indexation of all linguistic data files";
} else {
    $mes = "Indexation of the linguistic data file {$csv_filename}";
    $indexer->force_indexation();
}
$logger->info("{$mes} {$dir_mes}\n");
if ($csv_filename != null) {
    $indexer->index_one_file($csv_filename);
    $logger->info("Nb. of morphemes indexed in this pass: "******"Total nb. of data files:              " . count($indexer->list_data_files_in_data_directory()));
    $logger->info("Nb. files indexed in this pass: "******"Total nb. of entries:              " . count(file($indexer->get_main_index_pathname())));
    $logger->info("Nb. entries indexed in this pass: "******"\n*** {$message} ***\n";
    }
    echo "\nUsage: php makeindex.php [-options] [<csv filename>]";
    echo "\n\nwhere options include:";
    echo "\n\n";
    echo "-h\t\tprint this information\n";
    echo "-f\t\tforce indexation\n";
    $indexer = new Indexer();
    echo "-d <dir>\tindex data files in directory <dir> (defaults to " . $indexer->get_data_root() . ")\n";