Pass argument in script to run specific part in that

Hello Friends,

I need you help !

I have a scripts names runsteps.sh which contains command to run bunch of commands for each application you want to install " Oracle " Jboss" etc

echo " Which app you want to install Jboss" ? Yes or no? 
read ans

depending on Yes or not it goes inside case statement and run bunch of commands.

What i am looking for ?

When i run the script

# runsteps -app Jboss [ Should run only Jboss section in script ]
# runsteps -app oracle [ Shoud run only Oracle section in script ]

Pls help.

Ok, fix it.

Seriously you've not shown code. How do we give suggestions?

Have a look at this: How can I handle command-line arguments (options) to my script easily?

Thanks I am good now. How to close the thread ?

You don't. You should post your solution to the problem.