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

Bug#527026: a way to set default options



On Wed, 2009-05-06 at 22:53 +0100, Adam D. Barratt wrote:
> On Tue, 2009-05-05 at 00:14 -0700, Russ Allbery wrote:
> > Peter Eisentraut <petere@debian.org> writes:
> > 
> > > It would be nice if lintian had a way to set some default options,
> > > e.g., by a variable such as
> > >
> > > LINTIAN_OPTIONS='--color=auto -E'
> > >
> > > This could go into the shell initialization files or into .lintianrc.
> [...]
> > I think it's useful to have a variable too, since it catches the other
> > things that may run lintian besides debuild.  Seems like a good idea to
> > me.
[...]
> (i.e. I think I know how to do it, I just need to actually sit down and
> do it :)

Ah.  Actually, it's rather more complicated than I thought, unless we
assume that "default" means "in the absence of any command line option"
which doesn't seem ideal.

For example, if the default options string included --display-info or
--display-source, one can't easily override that on a case-by-case
basis.

Adam



Reply to: