From b0caa22404a85c366a2cef520800a86cf370cac7 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 12:00:24 +0000 Subject: Apply patch cscope-cscope-indexer-help.patch patch_name: cscope-cscope-indexer-help.patch present_in_specfile: true location_in_specfile: 5 --- diff --git a/contrib/xcscope/cscope-indexer b/contrib/xcscope/cscope-indexer index a688bfe..4fe0cc6 100755 --- a/contrib/xcscope/cscope-indexer +++ b/contrib/xcscope/cscope-indexer @@ -80,6 +80,37 @@ RECURSE= VERBOSE= export DIR RECURSE # Need to pass these to subprocesses +show_usage() { + +cat << EOF + + cscope-indexer [ -v ] [-f database_file ] [-i list_file ] [ -l ] [ -r ] + + where: + + -f database_file + Specifies the cscope database file (default: cscope.out). + + -i list_file + Specifies the name of the file into which the list of files + to index is placed (default: cscope.files). + + -l + Suppress the generation/updating of the cscope database + file. Only a list of files is generated. + + -r + Recurse into subdirectories to locate files to index. + Without this option, only the current directory is + searched. + + -v + Be verbose. Output simple progress messages. + +EOF + +} + while [ -n "$1" ] do case "$1" in @@ -110,6 +141,10 @@ do -v) VERBOSE=1 ;; + -h|--help) + show_usage + exit 0 + ;; *) DIR="$1" ;;