[lxc-devel] [PATCH] Remove the need for -n/--name from lxc-create, lxc-destroy and lxc-netstat

Andrian Nord nightnord at gmail.com
Fri Jan 8 10:14:12 UTC 2010


On Fri, Jan 08, 2010 at 06:13:54AM +0100, Michael Holzt wrote:
> This patch removes the need to specify -n or --name in front of the
> container name from the lxc-create, lxc-destroy and lxc-netstat commands.
> 
I'm not sure, that this is a good idea - if you are using strict
options, than you may filter any unknown option in clear way by catchall
case. In current state your patch will catch every mistake in option as
container name (loosing exact container name, which became second
uncatched argument), which may lead to unpredictable result. You may use
-*) to catch uncatched options-only, but this will violate '--'
stop-arg-parsing tradition.

Anyway, rationale?




More information about the lxc-devel mailing list