1 |
commit: 764d85b21d244a35f2e97474716f145045d0d596 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 30 23:00:10 2017 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 2 22:54:55 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/eselect-java.git/commit/?id=764d85b2 |
7 |
|
8 |
Modernise the java-vm module help text |
9 |
|
10 |
src/modules/java-vm.eselect.in | 16 ++++++++++++---- |
11 |
1 file changed, 12 insertions(+), 4 deletions(-) |
12 |
|
13 |
diff --git a/src/modules/java-vm.eselect.in b/src/modules/java-vm.eselect.in |
14 |
index b8654e3..552062f 100644 |
15 |
--- a/src/modules/java-vm.eselect.in |
16 |
+++ b/src/modules/java-vm.eselect.in |
17 |
@@ -28,7 +28,11 @@ sym_to_vm() { |
18 |
### show action ### |
19 |
|
20 |
describe_show() { |
21 |
- echo "Show the current vm" |
22 |
+ echo "Show the current VM" |
23 |
+} |
24 |
+ |
25 |
+describe_show_parameters() { |
26 |
+ echo "[user|system]" |
27 |
} |
28 |
|
29 |
do_show() { |
30 |
@@ -100,15 +104,19 @@ do_list() { |
31 |
### set action ### |
32 |
|
33 |
describe_set() { |
34 |
- echo "Set a new system or user vm" |
35 |
+ echo "Set a new system or user VM" |
36 |
} |
37 |
|
38 |
describe_set_options() { |
39 |
echo "--if-unset : do not change if already set" |
40 |
} |
41 |
|
42 |
+describe_set_parameters() { |
43 |
+ echo "<user|system> <VM>" |
44 |
+} |
45 |
+ |
46 |
do_set() { |
47 |
- local usage="Usage [user|system] [vm]" |
48 |
+ local usage="Usage <user|system> <VM>" |
49 |
local ifunset=0 |
50 |
|
51 |
if [[ ${1} == "--if-unset" ]]; then |
52 |
@@ -128,7 +136,7 @@ do_set() { |
53 |
if [[ ${UID} != 0 ]]; then |
54 |
my_set "${VM_USER}" "${2}" ${ifunset} |
55 |
else |
56 |
- die -q "Sorry, you cannot set a user vm as root. Set the system vm instead" |
57 |
+ die -q "Sorry, you cannot set a user VM as root. Set the system VM instead" |
58 |
fi |
59 |
else |
60 |
die -q ${usage} |