From cf46733632c7279a9fd0fe6ce26f9185a4ae82a9 Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Sat, 5 Aug 2017 16:22:51 +0000 Subject: subversion-1.9.7 --- tools/client-side/bash_completion_test | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tools/client-side/bash_completion_test') diff --git a/tools/client-side/bash_completion_test b/tools/client-side/bash_completion_test index 49e3532..d2c1785 100755 --- a/tools/client-side/bash_completion_test +++ b/tools/client-side/bash_completion_test @@ -114,14 +114,18 @@ get_svn_subcommands() { # Usage: get_svn_options SUBCMD get_svn_options() { { svn help "$1" | + # Remove deprecated options + grep -v deprecated | # Find the relevant lines; remove "arg" and description. sed -n -e '1,/^Valid options:$/d;/^ -/!d' \ -e 's/\( ARG\)* * : .*//;p' | # Remove brackets; put each word on its own line. tr -d '] ' | tr '[' '\n' # The following options are always accepted but not listed in the help - echo "-h" - echo "--help" + if [ "$1" != "help" ] ; then + echo "-h" + echo "--help" + fi } | sort } -- cgit v1.2.1