Re: want to show list of available options and arguments in my command line utility

2012-09-16 Thread Steven D'Aprano
On Sun, 16 Sep 2012 12:20:08 +0530, Santosh Kumar wrote: > I have a script that takes an which basically takes a command line > argument and prints after processing. If I don't give the argument to > the script, it gives me a ValueError: > > ValueError: need more than 1 value to unpack > > I was

Re: want to show list of available options and arguments in my command line utility

2012-09-16 Thread Steven D'Aprano
On Sun, 16 Sep 2012 12:20:08 +0530, Santosh Kumar wrote: > I have a script that takes an which basically takes a command line > argument and prints after processing. If I don't give the argument to > the script, it gives me a ValueError: > > ValueError: need more than 1 value to unpack > > I was

Re: want to show list of available options and arguments in my command line utility

2012-09-16 Thread Peter Otten
Santosh Kumar wrote: > I have a script that takes an which basically takes a command line > argument and prints after processing. If I don't give the argument to > the script, it gives me a ValueError: > > ValueError: need more than 1 value to unpack > > I was trying to utilizing this space, if

want to show list of available options and arguments in my command line utility

2012-09-15 Thread Santosh Kumar
I have a script that takes an which basically takes a command line argument and prints after processing. If I don't give the argument to the script, it gives me a ValueError: ValueError: need more than 1 value to unpack I was trying to utilizing this space, if there is no argument I want it to sh