diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/eselect.in | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/eselect.in b/bin/eselect.in index 5d3fc9b..3422197 100755 --- a/bin/eselect.in +++ b/bin/eselect.in @@ -1,6 +1,6 @@ #!@BASH@ # -*-eselect-*- vim: ft=eselect -# Copyright (c) 2005-2020 Gentoo Authors +# Copyright (c) 2005-2022 Gentoo Authors # # This file is part of the 'eselect' tools framework. # @@ -88,6 +88,8 @@ es_do_help() { write_kv_list_entry "--brief" "Make output shorter" write_kv_list_entry "--colour=<yes|no|auto>" \ "Enable or disable colour output (default 'auto')" + write_kv_list_entry "--root=<path>" \ + "The target root path for eselect's operations" echo # display all available eselect modules do_action modules list @@ -147,6 +149,11 @@ while [[ ${1##--} != "$1" ]]; do [[ -z ${action} ]] || die -q "Too many parameters" action=${1##--} ;; + root=*|root) + # set ROOT and recalculate EROOT + ROOT=${1#*=} + EROOT="${ROOT%${EPREFIX:+/}}${EPREFIX}" + ;; "") # -- indicates end of options shift |