blackcyber99 / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Revision 557 broke argument parsing #432

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. svn update -r556
2. python src/google.py --help
3. svn update -r557
4. python src/google.py --help

What is the expected output? What do you see instead?
Expected output at step #2 and step #4 to match. Instead step #4 outputs:
    Must specify at least a service and a task!

The same thing happens when you try the other switches that come with optparse 
(e.g. "--version").

Original issue reported on code.google.com by slackor...@gmail.com on 11 Oct 2011 at 8:24

GoogleCodeExporter commented 8 years ago
Digging in a bit more, seems this breaks all option parsing.  To wit:

> svn update -r 557
U    google.py
Updated to revision 557.
> python google.py --verbose calendar list
Did not recognize service.

Original comment by slackor...@gmail.com on 11 Oct 2011 at 8:30

GoogleCodeExporter commented 8 years ago
Thanks for reporting that.  I just checked in a change that should make that 
all work now, so please check and see if I missed anything.

Original comment by jh...@google.com on 13 Oct 2011 at 11:42