Permalink
Browse files

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

  • Loading branch information...
1 parent e5c2372 commit 1a6fa8b718434a5674c9386b5d0d61df15460784 @jefferai jefferai committed with Oct 17, 2011
Showing with 4 additions and 1 deletion.
  1. +3 −0 contrib/adc/adc.common-functions
  2. +1 −1 contrib/adc/help
@@ -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
@@ -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.

0 comments on commit 1a6fa8b

Please sign in to comment.