def _build_usage()

in iact3/cli.py [0:0]


    def _build_usage(self, args=None):
        args = args if args is not None else {}
        args['program'] = self.name
        if 'command' not in args:
            args['command'] = '<command>'
        if 'subcommand' not in args:
            args['subcommand'] = '[subcommand]'
        if 'global_opts' not in args:
            args['global_opts'] = '[args]'
        if 'command_opts' not in args:
            args['command_opts'] = '[args]'
        if 'subcommand_opts' not in args:
            args['subcommand_opts'] = '[args]'
        for key, val in args.items():
            if val and not val.endswith(' '):
                args[key] = f'{val} '
        return self.USAGE.format(**args)