The '-U' command line option has no config-based equivalent.

Bug #409009 reported by David Hostetler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Buildout
Confirmed
Wishlist
Unassigned

Bug Description

I'd like for buildout.cfg to be able to indicate that the user's ~/.buildout/default.cfg should not be used, but there is no keyword associated with this option, there is only the '-U' command line option.

For symmetry, I think that '-u' should be added as a command line option which indicates the user's default.cfg *SHOULD* be used. This (like '-U') would override any related setting in the config. But in the absence of either '-U' or '-u', the presence in the config of a keyword such as 'userdefaults' (userdefaults=[true,false]) would provide the authoritative value for that option.

As an added bonus, '-U' and '-u' would adhere to the ad hoc convention of the uppercase letter argument being the negative setting and the lowercase letter argument being the positive setting. Furthermore, the default buildout behavior (if no command line argument is present and no config variable is provided) would continue to be 'use the default.cfg', so any existing scripts and such would continue working normally.

Revision history for this message
Jim Fulton (jim-zope) wrote : Re: [Bug 409009] [NEW] The '-U' command line option has no config-based equivalent.

Of course, this isn't a bug, but a feature request. Patches,
including tests, accepted. :)

Jim

On Tue, Aug 4, 2009 at 3:43 PM, David Hostetler<email address hidden> wrote:
> Public bug reported:
>
> I'd like for buildout.cfg to be able to indicate that the user's
> ~/.buildout/default.cfg should not be used, but there is no keyword
> associated with this option, there is only the '-U' command line option.
>
> For symmetry, I think that '-u' should be added as a command line option
> which indicates the user's default.cfg *SHOULD* be used.  This (like
> '-U') would override any related setting in the config.  But in the
> absence of either '-U' or '-u', the presence in the config of a keyword
> such as 'userdefaults' (userdefaults=[true,false]) would provide the
> authoritative value for that option.
>
> As an added bonus, '-U' and '-u' would adhere to the ad hoc convention
> of the uppercase letter argument being the negative setting and the
> lowercase letter argument being the positive setting.   Furthermore, the
> default buildout behavior (if no command line argument is present and no
> config variable is provided) would continue to be 'use the default.cfg',
> so any existing scripts and such would continue working normally.
>
> ** Affects: zc.buildout
>     Importance: Undecided
>         Status: New
>
> --
> The '-U' command line option has no config-based equivalent.
> https://bugs.launchpad.net/bugs/409009
> You received this bug notification because you are subscribed to
> Buildout.
>

--
Jim Fulton

Changed in zc.buildout:
status: New → Confirmed
importance: Undecided → Wishlist
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.