aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2017-12-30 23:00:10 +0000
committerJames Le Cuirot <chewi@gentoo.org>2018-01-02 22:54:55 +0000
commit764d85b21d244a35f2e97474716f145045d0d596 (patch)
tree6c21095d333d3bfac2faba8dbceaeada8597ea6f /src
parentAdd --if-unset option to java-vm's set action (diff)
downloadeselect-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.in16
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}