Add option to have "list" be the default action for the help ADC
This commit is contained in:
parent
e5c2372609
commit
1a6fa8b718
|
@ -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; }
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue