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

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