- cerr << "Selector version " << VERSION << "-R" << REVISION_NUMBER
- << endl
- << "Written by Francois Fleuret <francois@fleuret.org>."
- << endl
- << endl
- << "Usage: " << argv[0] << " [options] -f <file>" << endl
- << endl
- << " -h show this help" << endl
- << " -v inject the selected line in the tty" << endl
- << " -d remove duplicated lines" << endl
- << " -b remove the bash history line prefix" << endl
- << " -z remove the zsh history line prefix" << endl
- << " -i invert the order of lines" << endl
- << " -e start in regexp mode" << endl
- << " -a case sensitive" << endl
- << " -m monochrome mode" << endl
- << " -t <title>" << endl
- << " add a title in the modeline" << endl
- << " -c <fg modeline> <bg modeline> <fg highlight> <bg highlight>" << endl
- << " set the display colors" << endl
- << " -o <output filename>" << endl
- << " set a file to write the selected line to" << endl
- << " -s <pattern separator>" << endl
- << " set the symbol to separate substrings in the pattern" << endl
- << " -l <max number of lines>" << endl
- << " set the maximum number of lines to take into account" << endl
- << endl;
-
+ fprintf(stderr, "Selector version %s-R%s\n", VERSION, REVISION_NUMBER);
+ fprintf(stderr, "Written by Francois Fleuret <francois@fleuret.org>.\n");
+ fprintf(stderr, "Usage: %s [options] [<filename1> [<filename2> ...]]\n", argv[0]);
+ fprintf(stderr, "\n");
+ fprintf(stderr, " -h show this help\n");
+ fprintf(stderr, " -v inject the selected line in the tty\n");
+ fprintf(stderr, " -w quote control characters with ^Qs when using -v\n");
+ fprintf(stderr, " -d remove duplicated lines\n");
+ fprintf(stderr, " -b remove the bash history line prefix\n");
+ fprintf(stderr, " -z remove the zsh history line prefix\n");
+ fprintf(stderr, " -i invert the order of lines\n");
+ fprintf(stderr, " -e start in regexp mode\n");
+ fprintf(stderr, " -a start in case sensitive mode\n");
+ fprintf(stderr, " -m monochrome mode\n");
+ fprintf(stderr, " -q make a flash instead of a beep on an edition error\n");
+ fprintf(stderr, " -- all following arguments are filenames\n");
+ fprintf(stderr, " -t <title>\n");
+ fprintf(stderr, " add a title in the modeline\n");
+ fprintf(stderr, " -c <fg modeline> <bg modeline> <fg highlight> <bg highlight>\n");
+ fprintf(stderr, " set the display colors\n");
+ fprintf(stderr, " -o <output filename>\n");
+ fprintf(stderr, " set a file to write the selected line to\n");
+ fprintf(stderr, " -s <pattern separator>\n");
+ fprintf(stderr, " set the symbol to separate substrings in the pattern\n");
+ fprintf(stderr, " -x <label separator>\n");
+ fprintf(stderr, " set the symbol to terminate the label\n");
+ fprintf(stderr, " -l <max number of lines>\n");
+ fprintf(stderr, " set the maximum number of lines to take into account\n");
+ fprintf(stderr, "\n");