From: Francois Fleuret Date: Wed, 18 Mar 2009 07:26:07 +0000 (+0100) Subject: Wrote a better short help. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=69c82940856baeaeeb3d7fc73e0ea1e193773758;p=selector.git Wrote a better short help. --- diff --git a/selector.cc b/selector.cc index 31bf262..51333b4 100644 --- a/selector.cc +++ b/selector.cc @@ -500,20 +500,24 @@ int main(int argc, char **argv) { << "Written by Francois Fleuret ." << endl << endl - << argv[0] - << " [-h]" - << " [-v]" - << " [-m]" - << " [-d]" - << " [-e]" - << " [-b]" - << " [-z]" - << " [-i]" - << " [-c ]" - << " [-o ]" - << " [-s ]" - << " [-l ]" - << " -f " + << "Usage: " << argv[0] << " [options] -f " << endl + << endl + << " -h show this help" << endl + << " -v inject the selection in the tty" << endl + << " -m monochrome mode" << endl + << " -d remove duplicated lines" << endl + << " -e regexp mode when starting" << endl + << " -b remove the bash history line prefix" << endl + << " -z remove the zsh history line prefix" << endl + << " -i invert the line order" << endl + << " -c " << endl + << " set the display colors" << endl + << " -o " << endl + << " set a file to write the selected line to" << endl + << " -s " << endl + << " set the symbol to separate substrings in the pattern" << endl + << " -l " << endl + << " set the maximum number of lines to take into account" << endl << endl; exit(error);