From aa98ee4c3721975139eb8996548ee2fb51e2b573 Mon Sep 17 00:00:00 2001 From: primardj Date: Sun, 21 Jan 2024 19:11:24 +0000 Subject: [PATCH] add better gestion of args --- vm-start.sh | 81 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 67 insertions(+), 14 deletions(-) diff --git a/vm-start.sh b/vm-start.sh index 8e81204..af869d5 100755 --- a/vm-start.sh +++ b/vm-start.sh @@ -3,8 +3,9 @@ #RESULT_POSSIBLE=("init","start","start-backup","create","backup","restore","suppr") +# Constante d'éxecutions. VERSION=0.6 -USAGE="vm-start NAME COMMAND [PARAMETER] [OPTION] +USAGE="vm-start [ NAME COMMAND [PARAMETER] ] [OPTION] Script to manage virtual machine easily. @@ -27,12 +28,12 @@ PARAMETTER available -v, --version Print the version of this program and quit OPTION available - NPROC= Def the number of proc of the vm - MEMORY= Def the qty of memory allocated to the vm - SIZE= Def the size that should be allocated by create - UEFI= Select if there will be an UEFI by default. + nproc= Def the number of proc of the vm + memory= Def the qty of memory allocated to the vm + size= Def the size that should be allocated by create + uefi Select if there will be an UEFI by default. can be either set or unset. By default is unset. - OPTIONS=