[Ml-yokadi] We should use Keyword in a smarter way
Aurélien Gâteau
aurelien.gateau
Jeu 12 Fév 21:47:07 CET 2009
Sébastien Renard wrote:
> Le mardi 10 février 2009, Aurélien Gâteau a écrit :
>>> Do you want to remove the -k ?
>> I would rather revert the change :/. If we want to go for @keyword, then
>> I believe we should have a reflexion on our usage of OptionParser. I
>> sometimes wonder whether Yokadi would be more usable if it featured a
>> natural language.
>
> Cf. Frederic post, yes we should. But with at least little structure to avoid
> black magic. Standard switch (-k --keyword) are quite to strict for common
> use but ideal for complex command (I think to t_list where it is perfect).
> For t_add, we could use @ for keyword and other symbol for project (= for
> exemple)
> t_add =myProject @aKeyword the title of the task @anotherKeyword
So we would have some kind of "typed command line parser", where "@foo"
would stand for "foo" keyword and "=bar" would stand for "=bar" project.
I think I need to let this idea spin in my little brain a bit more. I
would like to avoid relying on too many esoteric symbols, (I am a bit
afraid of perl'ifying the interface :) )
>> I am not sure I understand what you mean. Early versions of Yokadi did
>> not have projects: I thought projects could be implemented as keywords.
>> It turned out to be annoying to use... I can't remember why, though.
>
> If we have a symbol for project we could just omit project. Tasks would go to
> the "default project".
OK, I understand.
Aurélien
Plus d'informations sur la liste de diffusion Ml-yokadi