'summary <sid> [-t]
Summarise the results for a scan ID, <sid>. -t to only show
the element types.'

def do_summary(self, line):

    c = self.myparseline(line)
    if (len(c[0]) < 1):
        self.edprint('Invalid    syntax.')
        return
    sid = c[0][0]
    if ('-t' in c[0]):
        titles = {'0': 'Element    Type'}
    else:
        titles = {'0': 'Element    Type', '1': 'Element    Description', '3': 'Total', '4': 'Unique'}
    d = self.request((((self.ownopts['cli.server_baseurl'] + '/scansummary?id=') + sid) + '&by=type'))
    if (not d):
        return
    j = json.loads(d)
    if (not j):
        self.dprint('No    results    found.')
        return
    if (len(j) < 1):
        self.dprint('No    results    found.')
        return
    self.send_output(d, line, titles, total=False)
