[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] xm create option parsing..
> > 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
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |