Re: [libvirt] [PATCH sandbox] Fix argparser incompatibilities with newer python 3

2018-03-26 Thread Cedric Bosdonnat
On Fri, 2018-03-23 at 16:44 +, Daniel P. Berrangé wrote: > Python 3 changes such that if no subparser command is listed, it just > throws an error. To get back the old behavior we need to set the > 'required' attribute and a dest name. > > Since we treat 'debug' as a global attribute we need

[libvirt] [PATCH sandbox] Fix argparser incompatibilities with newer python 3

2018-03-23 Thread Daniel P . Berrangé
Python 3 changes such that if no subparser command is listed, it just throws an error. To get back the old behavior we need to set the 'required' attribute and a dest name. Since we treat 'debug' as a global attribute we need to set that on the top level parser too, otherwise we get a missing