def do_flag(self, arg):
        '''Set or Unset flag on mails.'''
        try:
            args = docopt.docopt('\n'.join([
                'Usage: flag [options] <mail_id> <flag>',
                '',
                'Options:',
                '    -u, --unset    Remove flag instead of setting them',
                '    -h, --help     Show help options',
            ]), argv=arg)
        except __HOLE__:
            return
        flag.flag(self.imap_account, [args['<mail_id>']], args['<flag>'],
                  unset=args['--unset'])
dataset/ETHPy150Open Gentux/imap-cli/imap_cli/scripts/imap_shell.py/ImapShell.do_flag