From: Ian Pratt Subject: Re: xm create option parsing.. Date: Fri, 30 Jul 2004 10:59:13 +0100 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: References: <410A11DE.6080809@hpl.hp.com> Return-path: In-reply-to: Your message of "Fri, 30 Jul 2004 10:16:14 BST." <410A11DE.6080809@hpl.hp.com> Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Mike Wray Cc: Mike Wray , Ian Pratt , Steven Hand , xen-devel@lists.sourceforge.netIan.Pratt@cl.cam.ac.uk List-Id: xen-devel@lists.xenproject.org > > Each subcommand is responsible for parsing its own options, so > > we could get 'xm create' etc. to allow options after the args. > > I'll make the change. > > Oops. The gnu-style getopt parsing is a Python 2.3 feature - not > available in 2.2. So we can't enable it at the moment. That's a bind. I'm going to have to cave in and switch to 2.3 at some point, but I'd like to hold out for a while longer. 'create' is the only sub command that really suffers from this, so could we just temporally hack the parsing to call getopt again on the arguments[1:] and append to the list? Not pretty, but... Ian ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com