[Ml-yokadi] YokadiOptionParser (was Re: yokadi upstream)

Aurélien Gâteau aurelien.gateau
Jeu 20 Nov 09:58:21 CET 2008


Aurélien Gâteau wrote:
> I just stumbled on a problem with the parser though: it split the line 
> in a string list using shlex.split(), which causes single and double 
> quotes to be interpreted. As a result, calling this:
> 
> t_add prj can't read .bar files
> 
> Will raise a ValueError("No closing quotation") exception. You now need 
> to escape the quote.
> I don't like this, but on the other hand having a real parser make it 
> possible to implement much more powerful commands. Any idea on this?

FYI, I fixed it by using string.split() instead of shlex.split(). The 
drawback is that we won't be able to have space-separated project or 
keyword names, but I think it's better this way.

Aurélien


Plus d'informations sur la liste de diffusion Ml-yokadi