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

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