From 69c82940856baeaeeb3d7fc73e0ea1e193773758 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 18 Mar 2009 08:26:07 +0100 Subject: [PATCH] Wrote a better short help. --- selector.cc | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) 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); -- 2.39.5