In our environment we have nearly 30 applications and 5 environments. Due to timeline issues, we have created 5[env]*3[three scripts per env]*30[num of applications]
. It is 450 files.
We understand that we duplicated the code unnecessarily. If we have to change some mount point location for an environment, it has to be changed all over the applications.
So I have designed an approach with 3[files for all the applications] + 2[files to have app specific methods].
It is working fine. But the question here is that we need to pass 7 arguments to those three scripts.
So there was an argument saying that the script is bizarre and cumbersome. I would like to know what is the advised number of command line arguments to bash script.
I couldn't find any documentation related to this. But I referred this. It doesn't convincing me.
Any suggestions? Do I need to really rethink the design just for the sake of 7 parameters.
Note: I did. I have a solution with 3-5 parameters now. But I would like to know the recommended number of the arguments.