Re: [Tutor] checking input parameters

2012-08-31 Thread Peter Otten
Bala subramanian wrote: > I use the following way to check for the input parameters. I would > like to know if there is a any better way to show or describe the > script usage. So when the user just runs it without any input params., > the program shd not execute but just shows the documentation.

[Tutor] checking input parameters

2012-08-31 Thread Bala subramanian
Friends, I use the following way to check for the input parameters. I would like to know if there is a any better way to show or describe the script usage. So when the user just runs it without any input params., the program shd not execute but just shows the documentation. from sys import argv if