in reply to Questions about adding arguements to a program.

Have a look at getopt.

Caution: Contents may have been coded under pressure.
  • Comment on Re: Questions about adding arguments to a program.