Automate help message using variants and options arrays. Fix wrong arithmetic used to set the mask used to check options

This commit is contained in:
frtabu
2019-06-13 15:29:11 +02:00
parent 05e7e3e0a8
commit 7982580861
7 changed files with 132 additions and 228 deletions
+1 -13
View File
@@ -30,19 +30,7 @@ function destroy_usage {
echo "------"
echo " oai-ci-vm-tool destroy [OPTIONS]"
echo ""
echo "Mandatory Options:"
echo "--------"
echo " --job-name #### OR -jn ####"
echo " Specify the name of the Jenkins job."
echo ""
echo " --build-id #### OR -id ####"
echo " Specify the build ID of the Jenkins job."
echo ""
echo "Options:"
echo "--------"
echo " --help OR -h"
echo " Print this help message."
echo ""
command_options_usage
}
function destroy_vm {