diff --git a/bin/tools/foamCreateModuleInclude b/bin/tools/foamCreateModuleInclude
index f8e8775ed3614f76325e39336dc7ed16711b3c80..77a275173f5facac3aaa5890d006ba534110275b 100755
--- a/bin/tools/foamCreateModuleInclude
+++ b/bin/tools/foamCreateModuleInclude
@@ -85,10 +85,10 @@ do
     --recursive-backend--)
         optBackend=true
         ;;
-    --output=*)
+    -output=*)
         moduleOutput="${1#*=}"
         ;;
-    --tmpdir=*)
+    -tmpdir=*)
         moduleTmpDir="${1#*=}"
         ;;
     -*)