def __init__(self, help=None):
        """ Initialize CLI command line."""
        @compatcallback
        def set_debug(ctx, param, value):
            ctx.obj['verbose'] = value

        @compatcallback
        def get_version(ctx, param, value):
            if value:
                print(('Gandi CLI %s\n\n'
                       'Copyright: © 2014-2018 Gandi S.A.S.\n'
                       'License: GPL-3' % __version__))
                ctx.exit()

        if help is None:
            help = inspect.getdoc(self)

        click.Group.__init__(self, help=help, params=[
            click.Option(['-v'],
                         help='Enable or disable verbose mode. Use multiple '
                              'time for higher level of verbosity: -v, -vv',
                         count=True, metavar='',
                         default=0, callback=set_debug),
            click.Option(['--version'],
                         help='Display version.',
                         is_flag=True,
                         default=False, callback=get_version)

        ])
def __init__ ( self , help = None ) : @ compatcallback def set_debug ( ctx , param , value ) : ctx . obj [ 'verbose' ] = value @ compatcallback def get_version ( ctx , param , value ) : if value : print ( ( 'Gandi CLI %s\n\n' 'Copyright: © 2014-2018 Gandi S.A.S.\n' 'License: GPL-3' % __version__ ) ) ctx . exit ( ) if help is None : help = inspect . getdoc ( self ) click . Group . __init__ ( self , help = help , params = [ click . Option ( [ '-v' ] , help = 'Enable or disable verbose mode. Use multiple ' 'time for higher level of verbosity: -v, -vv' , count = True , metavar = '' , default = 0 , callback = set_debug ) , click . Option ( [ '--version' ] , help = 'Display version.' , is_flag = True , default = False , callback = get_version ) ] )
Initialize CLI command line.