Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 135841

Summary: default options in practice
Product: Portage Development Reporter: Nick <nick>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: VERIFIED LATER    
Severity: enhancement    
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nick 2006-06-06 18:04:30 UTC
I have been using the EBUILD_DEFAULT_OPTS="-atv" as this saves a lot of typing when exploring what to emerge next.  But this causes some issues:

When running emerge --info I can't get rid of the -v.
Suggest: ignore -v from OPTS and use on command line if wanted.

When calling from script, emerge complains about -a.
Suggest: only complain if specified as "emerge -a", but drop silently if from OPTS.

When running emerge -p, emerge complains about -pa.
Suggest: only complain if both -p and -a specified in OPTS or cli options.  If options are specified one in each source, the cli should be used.

Similar issue exists with --columns and -t.

Obviously, there was only one source for options when these messages were written.
Comment 1 Zac Medico gentoo-dev 2006-06-06 18:16:06 UTC
We really need to rewrite all the option parsing to use python's optparse module.  We will certainly consider these suggestions at that time.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2007-01-12 06:30:12 UTC
This is fixed by now with --ignore-default-opts