[Vmdebootstrap-devel] Bug#770722: Bug#770722: Bug#770722: [PATCH] add --debootstrap-opts to pass additional options to debootstrap

Lars Wirzenius liw at liw.fi
Sun May 3 17:44:29 UTC 2015


On Sun, May 03, 2015 at 07:26:50PM +0200, Jan Gerber wrote:
> with self.settings.string_list that would become
> 
>  --debootstrap-option --key --debootstrap-option value
> 
> that looks ugly and seams to verbose.

Yes, that would be very ugly and verbose. However, adding one's own
parsing on top of what shell and cliapp's command line parser provide
also seems problematic: it further increases the difficult of the user
understanding what's going on.

I would, in face, make use of the fact that all debootstrap settings
are either flags or the acccept an equals sign. thus:

    --debootstrap-setting key=value

This would then be passed on as "--key=value" to debootstrap.

Of course, --debootstrap-setting is pretty long, so a shorter alias
of, say, -D might be in order.

As a more real example:

   vmdebootstrap -D no-check-gpg -D verbose -D exclude=exim4

Would that be acceptable?

-- 
Happiness is a tested backup.



More information about the Vmdebootstrap-devel mailing list