[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-hackers-public] Re: log_accum
From: |
Sylvain Beucler |
Subject: |
[Savannah-hackers-public] Re: log_accum |
Date: |
Fri, 17 Nov 2006 20:06:56 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
> > my @option_spec = ("config|c=s@",
> > "mail-to|m=s@",
> > - "tag|only-tag|r=s@",
> > + "only-tag|tag|r=s@",
> > "file-prefix|file-text|T=s", "user|u=s",
> I don't see any good reason for this reordering, but I included it
> anyhow.
That one is important (maybe I should have commented my changes :/),
because GetOpt uses the first alternative in $config afaics. So in
this case: $config{only-tag} (previously: $config{tag}).
&{$config{'only-tag'} won't be called if 'tag' is the first
alternative. Since you already used $config{tag} to store the option
values and $config{only-tags} as the callback, I just set 'only-tag'
as the first alternative.
--
Sylvain