Skip to content
Snippets Groups Projects
Commit b7a73c5b authored by Fernando Herrero's avatar Fernando Herrero
Browse files

Fixed create_algorithm arguments to manage prefixes (-i disables iri_, -p <prefix> adds <prefix>_)

parent 0462d9b1
No related branches found
No related tags found
No related merge requests found
...@@ -22,22 +22,25 @@ echo "/**********************************************/" ...@@ -22,22 +22,25 @@ echo "/**********************************************/"
echo "/* Creating New IRI_ROS Simple Algorithm Node */" echo "/* Creating New IRI_ROS Simple Algorithm Node */"
echo "/**********************************************/" echo "/**********************************************/"
usage="Usage: create_algorithm_package.sh -n node_name [-i [other_prefix]]\n usage="Usage: create_algorithm_package.sh -n node_name [-i] [-p <prefix>]\n
Parameters:\n Parameters:\n
\t-i: avoid adding the default iri_ prefix to the provided node name.\n \t-i: avoid adding the default iri_ prefix to the provided node name.\n
\t-i other_prefix: replaces default iri_ prefix with specified other_prefix_." \t-p <prefix>: replaces default iri_ prefix with specified <prefix>_."
input_name= input_name=
use_iri_prefix=true use_iri_prefix=true
input_prefix= input_prefix=
#check for input project name paramenter #check for input project name paramenter
while getopts “:n:i:” OPTION while getopts “:n:ip:” OPTION
do do
case $OPTION in case $OPTION in
n) n)
input_name=$OPTARG input_name=$OPTARG
;; ;;
i) i)
use_iri_prefix=false
;;
p)
use_iri_prefix=false use_iri_prefix=false
input_prefix=$OPTARG input_prefix=$OPTARG
;; ;;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment