Add option to have "list" be the default action for the help ADC

This commit is contained in:
Jeff Mitchell 2011-10-17 18:22:54 -04:00 committed by Sitaram Chamarty
parent e5c2372609
commit 1a6fa8b718
2 changed files with 4 additions and 1 deletions

View file

@ -21,6 +21,9 @@ BASE_FETCH_URL="git://gl.example.com"
GL_FORKED_FROM="gl-forked-from"
# KDE may set this to kde-cloned-from for historical reasons
# Change to 1 to make -list the default action for the 'help' command
HELP_LIST_DEFAULT=0
# ------------------------------------------------------------------------------
die() { echo "$@"; exit 1; }

View file

@ -4,7 +4,7 @@
# the help adc now takes some options; we need to process them first
[ "$1" = "-list" ] && {
[ "$1" = "-list" -o $HELP_LIST_DEFAULT ] && {
# the GL_ADC_PATH directory has files other than ADCs also, notably the
# include file for shell ADCs, and maybe a README or two. Those should be
# chmod -x.