diff options
author | James Le Cuirot <chewi@gentoo.org> | 2017-12-30 23:00:10 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2018-01-02 22:54:55 +0000 |
commit | 764d85b21d244a35f2e97474716f145045d0d596 (patch) | |
tree | 6c21095d333d3bfac2faba8dbceaeada8597ea6f /src | |
parent | Add --if-unset option to java-vm's set action (diff) | |
download | eselect-java-764d85b21d244a35f2e97474716f145045d0d596.tar.gz eselect-java-764d85b21d244a35f2e97474716f145045d0d596.tar.bz2 eselect-java-764d85b21d244a35f2e97474716f145045d0d596.zip |
Modernise the java-vm module help text
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/java-vm.eselect.in | 16 |
1 files 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} |