On Mon, Aug 28, 2006 at 04:03:14AM -0400, Daniel Veillard wrote: > > +static vshCmdOptDef opts_start[] = { > > + {"name", VSH_OT_DATA, VSH_OFLAG_REQ, "name of the inactive domain" }, > > + {NULL, 0, 0, NULL} > > +}; > > Could be nice to allow passing UUID too here, names are relatively weak. Yes. Daniel, see the rest of commands in virsh. There is function vshCommandOptDomain() that supports ID, NAME ad UUID. {"domain", VSH_OT_DATA, VSH_OFLAG_REQ, "domain name, id, uuid"}, virDomainPtr dom; if (!(dom = vshCommandOptDomain(ctl, cmd, "domain", NULL))) return FALSE; Karel -- Karel Zak <kzak@xxxxxxxxxx>