static void PrintUsage()
{
VersionFu.PrintHeader ();
string usage =
"Usage: beagrep-build-index [OPTIONS] --target <index_path> <path> [path]\n\n" +
"** WARNING **\n" +
"beagrep-build-index will *delete all existing data* within the target\n" +
"directory. Ensure that the target path is set correctly before running.\n\n" +
"Options:\n" +
" --source [name]\t\tThe index's source name. Defaults to the target directory name\n" +
// FIXME: remap doesnt seem to be implemented !
// Implementing remap might some fixes to --enable-deletion, see IndexWorker
//" --remap [path1:path2]\t\tRemap data paths to fit target. \n" +
" --tag [tag]\t\t\tTag index data for identification.\n" +
" --recursive\t\t\tCrawl source path recursivly.\n" +
" --enable-deletion\t\tRemove deleted files and directories from index.\n" +
" \t\tIndex should be created and always updated with this option.\n" +
" --enable-text-cache\t\tBuild text-cache of documents used for snippets.\n" +
" --disable-directories\t\tDon't add directories to the index.\n" +
" --deny-directory-pattern\t\tKeep any directory and files under it matching this pattern from being indexed.\n" +
" --disable-filtering\t\tDisable all filtering of files. Only index attributes.\n" +
" --allow-pattern [pattern]\tOnly allow files that match the pattern to be indexed.\n" +
" --deny-pattern [pattern]\tKeep any files that match the pattern from being indexed.\n" +
" --disable-restart\t\tDon't restart when memory usage gets above a certain threshold.\n" +
" --disable-on-battery\t\tDisable indexer while on battery power.\n";
Console.WriteLine (usage);
Environment.Exit (0);
}