calopter / googlecl

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

--src option erroneously filled #514

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you don't pass an --src option, it is filled nevertheless if you give 
arguments of the command line.  It happens in the code part

for attr in missing_reqs:
    value = config.lazy_get(service_header, attr)
    if not value:
      if args:
        value = args.pop(0)
      else:
        value = raw_input('Please specify ' + attr + ': ')
    setattr(options, attr, value)

in the routine fill_out_options.  Before these lines, options.src is None, and 
after that, it is the text of the appointment I'd like to add.  The command 
line to reproduce is

/usr/bin/google calendar add "--date=2013-03-27 @ 10:00" --cal=org 
--reminder=10m "phone conference"

Original issue reported on code.google.com by torsten....@gmail.com on 25 Mar 2013 at 7:53