commit:     764d85b21d244a35f2e97474716f145045d0d596
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 30 23:00:10 2017 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Tue Jan  2 22:54:55 2018 +0000
URL:        https://gitweb.gentoo.org/proj/eselect-java.git/commit/?id=764d85b2

Modernise the java-vm module help text

 src/modules/java-vm.eselect.in | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/modules/java-vm.eselect.in b/src/modules/java-vm.eselect.in
index b8654e3..552062f 100644
--- a/src/modules/java-vm.eselect.in
+++ b/src/modules/java-vm.eselect.in
@@ -28,7 +28,11 @@ sym_to_vm() {
 ### show action ###
 
 describe_show() {
-       echo "Show the current vm"
+       echo "Show the current VM"
+}
+
+describe_show_parameters() {
+       echo "[user|system]"
 }
 
 do_show() {
@@ -100,15 +104,19 @@ do_list() {
 ### set action ###
 
 describe_set() {
-       echo "Set a new system or user vm"
+       echo "Set a new system or user VM"
 }
 
 describe_set_options() {
        echo "--if-unset : do not change if already set"
 }
 
+describe_set_parameters() {
+       echo "<user|system> <VM>"
+}
+
 do_set() {
-       local usage="Usage [user|system] [vm]"
+       local usage="Usage <user|system> <VM>"
        local ifunset=0
 
        if [[ ${1} == "--if-unset" ]]; then
@@ -128,7 +136,7 @@ do_set() {
                if [[ ${UID} != 0 ]]; then 
                        my_set "${VM_USER}" "${2}" ${ifunset}
                else
-                       die -q "Sorry, you cannot set a user vm as root. Set 
the system vm instead"
+                       die -q "Sorry, you cannot set a user VM as root. Set 
the system VM instead"
                fi
        else
                die -q ${usage}

Reply via email to