def add_output_compression_type(parser):
 group = parser.add_mutually_exclusive_group()
 group.add_argument(u'--gzip', default=False, action=u'store_true', help=u'Compress output using gzip')
 group.add_argument(u'--bzip', default=False, action=u'store_true', help=u'Compress output using bzip2')

def add_output_compression_type ( parser ) : group = parser . add_mutually_exclusive_group ( ) group . add_argument ( u'--gzip' , default = False , action = u'store_true' , help = u'Compress output using gzip' ) group . add_argument ( u'--bzip' , default = False , action = u'store_true' , help = u'Compress output using bzip2' )
add compression arguments to a parser object .