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 <[email protected]>:

> On Sat, Apr 9, 2016 at 4:16 AM, Shigio YAMAGUCHI <[email protected]> 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.
>
> Britton
>



-- 
Shigio YAMAGUCHI <[email protected]>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3
_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to