From f3fd1e3dfdedac734a6baff1c4ba3919dca07a46 Mon Sep 17 00:00:00 2001 From: Ulrich Müller Date: Sun, 11 Oct 2009 10:56:56 +0000 Subject: Don't use hyphens in identifiers for function names. svn path=/trunk/; revision=692 --- bin/eselect.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/eselect.in b/bin/eselect.in index c28123a..c9d84a3 100755 --- a/bin/eselect.in +++ b/bin/eselect.in @@ -108,17 +108,17 @@ ec_do_version() { echo "Distributed under the terms of the GNU General Public License v2." } -# ec_do_list-options +# ec_do_list_options # Display all recognized global options -ec_do_list-options() { +ec_do_list_options() { write_list_start "Global options:" #write_kv_list_entry "--brief" "Make output shorter (experimental)" write_kv_list_entry "--no-color,--no-colour" "Disable coloured output" } -# ec_do_list-modules +# ec_do_list_modules # Display all available eselect modules DEPRECATED -ec_do_list-modules() { +ec_do_list_modules() { do_action modules list "$@" } @@ -184,9 +184,9 @@ if [[ -z ${action} ]] && [[ -n ${1##--} ]] ; then fi if [[ -n ${action} ]] ; then - if is_function "ec_do_${action}" ; then + if is_function "ec_do_${action//-/_}" ; then [[ $# -gt 0 ]] && die -q "Too many parameters" - ec_do_${action} + ec_do_${action//-/_} else do_action "${action}" "$@" fi -- cgit v1.2.3-65-gdbad