Commit 356b5081 authored by Alexandre Dulaunoy's avatar Alexandre Dulaunoy
Browse files

Help clarified for the top terms used

parent fa5f9d0a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
#
# Software is free software released under the "Modified BSD license"
#
# Copyright (c) 2012-2014 	Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2012-2015 	Alexandre Dulaunoy - a@foo.be
# Copyright (c) 2015 		Pieter-Jan Moreels - pieterjan.moreels@gmail.com

# Imports
@@ -20,7 +20,6 @@ import argparse
import json
from bson import json_util


runPath = os.path.dirname(os.path.realpath(__file__))

indexpath = "./indexdir"
@@ -32,7 +31,7 @@ argParser = argparse.ArgumentParser(description='Full text search for cve-search
argParser.add_argument('-q', action='append', help='query to lookup (one or more)')
argParser.add_argument('-t', action='store_true', help='output title of the match CVE(s)')
argParser.add_argument('-f', action='store_true', help='output matching CVE(s) in JSON')
argParser.add_argument('-m', type=int, default=False, help='most frequent terms)')
argParser.add_argument('-m', type=int, default=False, help='most frequent terms in CVE description (m is top-m values)')
argParser.add_argument('-l', action='store_true', default=False, help='dump all terms encountered in CVE description')
argParser.add_argument('-g', action='store_true', default=False, help='graph of most frequent terms with each matching CVE (JSON output)')
argParser.add_argument('-s', action='store_true', default=False, help='enable stemming on graph JSON output (default is False)')