diff --git a/add_action_server_client.sh b/add_action_server_client.sh
index c98ff878bdfcb8fa3df7bd6d109b1f1fd46c0d83..ed0cf7b3063c9c15fc3981d7739f922611ca8584 100755
--- a/add_action_server_client.sh
+++ b/add_action_server_client.sh
@@ -40,7 +40,12 @@ do
        ros_pkg=$OPTARG
        ;;
     a)
-       action_name=$OPTARG
+       if echo "$OPTARG" | grep -q "/"; then
+          kill_exit "ERROR: argument -$OPTION can't contain slash '/' characters"
+          exit
+       else
+          action_name=$OPTARG
+       fi
        ;;
     m)
        action_file=$OPTARG
diff --git a/add_service_server_client.sh b/add_service_server_client.sh
index d8321b6cd8252f5641a5b73fd69e8f18510b77c3..ee94f426c954ec0d9b776b61728584dc0856394d 100755
--- a/add_service_server_client.sh
+++ b/add_service_server_client.sh
@@ -40,7 +40,12 @@ do
        ros_pkg=$OPTARG
        ;;
     s)
-       service_name=$OPTARG
+       if echo "$OPTARG" | grep -q "/"; then
+          kill_exit "ERROR: argument -$OPTION can't contain slash '/' characters"
+          exit
+       else
+          service_name=$OPTARG
+       fi
        ;;
     m)
        srv_file=$OPTARG
diff --git a/add_topic_publisher_subscriber.sh b/add_topic_publisher_subscriber.sh
index e89e5fd408c8c14be8f08502b5619f50937ef553..5a0614013de49475be043239828410a3832e125f 100755
--- a/add_topic_publisher_subscriber.sh
+++ b/add_topic_publisher_subscriber.sh
@@ -41,7 +41,12 @@ do
        ros_pkg=$OPTARG
        ;;
     t)
-       topic_name=$OPTARG
+       if echo "$OPTARG" | grep -q "/"; then
+          kill_exit "ERROR: argument -$OPTION can't contain slash '/' characters"
+          exit
+       else
+          topic_name=$OPTARG
+       fi
        ;;
     m)
        msg_file=$OPTARG