[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: htags could use support for multiple --call-tree --callee-tree optio

From: Shigio YAMAGUCHI
Subject: Re: htags could use support for multiple --call-tree --callee-tree options
Date: Sun, 10 Apr 2016 10:44:45 +0900

I noticed that 'foo_prog' in your first suggestion menas a program name.
I agree to it. How about the following?

htags --call-tree=<path of cflow output>[:<program name>]

(The --call-tree option can be used more than one times.)

2016-04-10 7:09 GMT+09:00 Britton Kerin <address@hidden>:
On Sat, Apr 9, 2016 at 4:16 AM, Shigio YAMAGUCHI <address@hidden> wrote:
> Hi,
>> htags could use support for multiple --call-tree --callee-tree options
>> so for example:
>>   htags --suggest --call-tree=foo_prog,foo_call_tree
>> --call-tree=bar_prog,bar_call_tree
> I agree with you. Is this also OK?
> htags --call-tree=foo_prog --call-tree=foo_call_tree \
>         --call-tree=bar_prog --call-tree=bar_call_tree

It would work but is a little odd.  So was my proposed syntax but
maybe not quite so much since the option argument is obviously a
2-tuple rather than having different meanings depending on option
order (assuming I understand correctly what you have in mind).
Perhaps better than either would be to have
--call-tree-programs=foo,bar and
--call-tree=foo_call_tree,bar_call_tree.  The existing behavior could
be preserved when the --call-tree array has exactly one value,
otherwise --call-tree-programs would be required.  This way everything
has an explicit option name and user can use array option arguments or
repeated options as they wish.


Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]