aboutsummaryrefslogtreecommitdiff
path: root/tools/add-feature-template.sh
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 16:11:34 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-05-13 16:11:34 +0300
commitba527cf1132b834c9ed43a7bb7ecda11029e0f9c (patch)
tree10b76f02c8e9eca2fa5b9870183f16492cd0094e /tools/add-feature-template.sh
parent1ee32d5729eb998965436111a70a4e62c90746bf (diff)
downloadit-kariera-exam-template-ba527cf1132b834c9ed43a7bb7ecda11029e0f9c.tar
it-kariera-exam-template-ba527cf1132b834c9ed43a7bb7ecda11029e0f9c.tar.gz
it-kariera-exam-template-ba527cf1132b834c9ed43a7bb7ecda11029e0f9c.zip
Added help menus to all tools (scripts)
Diffstat (limited to 'tools/add-feature-template.sh')
-rwxr-xr-xtools/add-feature-template.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/add-feature-template.sh b/tools/add-feature-template.sh
index 51f1990..73fe696 100755
--- a/tools/add-feature-template.sh
+++ b/tools/add-feature-template.sh
@@ -1,5 +1,16 @@
#!/bin/bash
+if [ "$1" = "-h" ] || [ "$1" = "--help" ] || [ "$1" = "-?" ]; then
+ cat <<EOF
+./add-feature-template.sh [ProjectName] [FeatureName] "[type Name]" "[type Name]" ...
+
+Example: ./add-feature-template.sh CarShop Car "string Brand" "string Model" "int Year"
+
+For more information: https://gitlab.com/Syndamia/it-kariera-exam-template#add-feature-template
+EOF
+ exit
+fi
+
if [ -z "$1" ] || [ -z "$2" ]; then
echo "No name supplied!"
exit