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 -20
View File
@@ -33,26 +33,7 @@ function test_usage {
echo "------"
echo " oai-ci-vm-tool test [OPTIONS]"
echo ""
echo "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 " --workspace #### OR -ws ####"
echo " Specify the workspace."
echo ""
variant_usage
echo " Specify the variant to build."
echo ""
echo " --keep-vm-alive OR -k"
echo " Keep the VM alive after the build."
echo ""
echo " --help OR -h"
echo " Print this help message."
echo ""
command_options_usage
}
function start_basic_sim_enb {