aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2013-10-22 19:03:30 +0200
committerUlrich Müller <ulm@gentoo.org>2013-10-22 19:03:30 +0200
commitb1890839e5719c7affcaf22403073295c73aed98 (patch)
treea35d956c5521b7a8d6b7a3a0371fdf20faa36dc4 /bin
parentRemove legacy --no-colour option. (diff)
downloadeselect-b1890839e5719c7affcaf22403073295c73aed98.tar.gz
eselect-b1890839e5719c7affcaf22403073295c73aed98.tar.bz2
eselect-b1890839e5719c7affcaf22403073295c73aed98.zip
Remove deprecated es_do_list_{options,modules} functions.
* bin/eselect.in (es_do_list_options, es_do_list_modules): Remove deprecated functions. (es_do_help): Move code for listing options and modules to here.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/eselect.in28
1 files changed, 9 insertions, 19 deletions
diff --git a/bin/eselect.in b/bin/eselect.in
index d5ba828..b1dc5d9 100755
--- a/bin/eselect.in
+++ b/bin/eselect.in
@@ -82,9 +82,14 @@ es_do_help() {
set_output_mode default
es_do_usage
echo
- es_do_list_options
+ # display all recognized global options
+ write_list_start "Global options:"
+ write_kv_list_entry "--brief" "Make output shorter"
+ write_kv_list_entry "--colour=<yes|no|auto>" \
+ "Enable or disable colour output (default 'auto')"
echo
- es_do_list_modules
+ # display all available eselect modules
+ do_action modules list
}
# es_do_version
@@ -96,21 +101,6 @@ es_do_version() {
echo "Distributed under the terms of the GNU GPL version 2 or later."
}
-# es_do_list_options
-# Display all recognized global options
-es_do_list_options() {
- write_list_start "Global options:"
- write_kv_list_entry "--brief" "Make output shorter"
- write_kv_list_entry "--colour=<yes|no|auto>" \
- "Enable or disable colour output (default 'auto')"
-}
-
-# es_do_list_modules
-# Display all available eselect modules DEPRECATED
-es_do_list_modules() {
- do_action modules list "$@"
-}
-
### main code ###
# figure out what the action is. we need to know whether we're
@@ -178,9 +168,9 @@ fi
unset colour
if [[ -n ${action} ]]; then
- if is_function "es_do_${action//-/_}"; then
+ if is_function "es_do_${action}"; then
[[ $# -gt 0 ]] && die -q "Too many parameters"
- es_do_${action//-/_}
+ es_do_${action}
else
do_action "${action}" "$@"
fi