Blame SOURCES/dist-2-cscope-indexer-help.patch

f87e68
diff -up ./contrib/xcscope/cscope-indexer.help ./contrib/xcscope/cscope-indexer
f87e68
--- ./contrib/xcscope/cscope-indexer.help	2017-12-07 10:45:07.000000000 -0500
f87e68
+++ ./contrib/xcscope/cscope-indexer	2019-06-24 15:46:31.484852474 -0400
f87e68
@@ -80,6 +80,37 @@ RECURSE=
f87e68
 VERBOSE=
f87e68
 export DIR RECURSE			# Need to pass these to subprocesses
f87e68
 
f87e68
+show_usage() {
f87e68
+
f87e68
+cat << EOF
f87e68
+
f87e68
+     cscope-indexer [ -v ] [-f database_file ] [-i list_file ] [ -l ] [ -r ]
f87e68
+
f87e68
+ where:
f87e68
+
f87e68
+     -f database_file
f87e68
+          Specifies the cscope database file (default: cscope.out).
f87e68
+
f87e68
+     -i list_file
f87e68
+          Specifies the name of the file into which the list of files
f87e68
+          to index is placed (default: cscope.files).
f87e68
+
f87e68
+     -l
f87e68
+          Suppress the generation/updating of the cscope database
f87e68
+          file.  Only a list of files is generated.
f87e68
+
f87e68
+     -r
f87e68
+          Recurse into subdirectories to locate files to index.
f87e68
+          Without this option, only the current directory is
f87e68
+          searched.
f87e68
+
f87e68
+     -v
f87e68
+          Be verbose.  Output simple progress messages.
f87e68
+
f87e68
+EOF
f87e68
+
f87e68
+}
f87e68
+
f87e68
 while [ -n "$1" ]
f87e68
 do
f87e68
     case "$1" in
f87e68
@@ -110,6 +141,10 @@ do
f87e68
     -v)
f87e68
 	VERBOSE=1
f87e68
 	;;
f87e68
+    -h|--help)
f87e68
+	show_usage
f87e68
+	exit 0
f87e68
+	;;
f87e68
     *)
f87e68
 	DIR="$1"
f87e68
 	;;