On Jan 5, 1:05 am, "ru...@yahoo.com" <ru...@yahoo.com> wrote:
>   class AppendWithPos (argparse.Action):
>     def __call__ (self, parser, namespace, values,
> option_string=None):
>         if getattr (namespace, self.dest, None) is None:
>             setattr (namespace, self.dest, [])
>         getattr (namespace, self.dest).extend ((values, len (parser.largs)))

I realized right after posting that the above line should
be I think,
  getattr (namespace, self.dest).extend ((values, len
(namespace.src)))

but that still doesn't help with the "unrecognised arguments"
problem.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to