Add option "-H" as a synonym for "--html" to generate HTML
This commit is contained in:
parent
4c36be0094
commit
8f9ccc47ea
|
@ -1599,7 +1599,7 @@ flawfinder [--help | -h] [--version] [--listrules]
|
||||||
[--inputs | -I] [--minlevel X | -m X]
|
[--inputs | -I] [--minlevel X | -m X]
|
||||||
[--falsepositive | -F] [--neverignore | -n]
|
[--falsepositive | -F] [--neverignore | -n]
|
||||||
[--context | -c] [--columns | -C] [--dataonly | -D]
|
[--context | -c] [--columns | -C] [--dataonly | -D]
|
||||||
[--html] [--immediate | -i] [--singleline | -S]
|
[--html | -H] [--immediate | -i] [--singleline | -S]
|
||||||
[--omittime] [--quiet | -Q]
|
[--omittime] [--quiet | -Q]
|
||||||
[--loadhitlist F] [--savehitlist F] [--diffhitlist F]
|
[--loadhitlist F] [--savehitlist F] [--diffhitlist F]
|
||||||
[--] [source code file or source root directory]+
|
[--] [source code file or source root directory]+
|
||||||
|
@ -1656,7 +1656,8 @@ flawfinder [--help | -h] [--version] [--listrules]
|
||||||
--dataonly | -D
|
--dataonly | -D
|
||||||
Don't display the headers and footers of the analysis;
|
Don't display the headers and footers of the analysis;
|
||||||
use this along with --quiet to get just the results.
|
use this along with --quiet to get just the results.
|
||||||
--html Display as HTML output.
|
--html | -H
|
||||||
|
Display as HTML output.
|
||||||
--immediate | -i
|
--immediate | -i
|
||||||
Immediately display hits (don't just wait until the end).
|
Immediately display hits (don't just wait until the end).
|
||||||
--singleline | -S
|
--singleline | -S
|
||||||
|
@ -1689,7 +1690,7 @@ def process_options():
|
||||||
global patch_file
|
global patch_file
|
||||||
try:
|
try:
|
||||||
# Note - as a side-effect, this sets sys.argv[].
|
# Note - as a side-effect, this sets sys.argv[].
|
||||||
optlist, args = getopt.getopt(sys.argv[1:], "ce:m:nih?CSDQIFP:",
|
optlist, args = getopt.getopt(sys.argv[1:], "ce:m:nih?CSDQHIFP:",
|
||||||
["context", "minlevel=", "immediate", "inputs", "input",
|
["context", "minlevel=", "immediate", "inputs", "input",
|
||||||
"nolink", "falsepositive", "falsepositives",
|
"nolink", "falsepositive", "falsepositives",
|
||||||
"columns", "listrules", "omittime", "allowlink", "patch=",
|
"columns", "listrules", "omittime", "allowlink", "patch=",
|
||||||
|
@ -1722,7 +1723,7 @@ def process_options():
|
||||||
skipdotdir = 0
|
skipdotdir = 0
|
||||||
elif opt == "--listrules":
|
elif opt == "--listrules":
|
||||||
list_rules = 1
|
list_rules = 1
|
||||||
elif opt == "--html":
|
elif opt == "--html" or opt == "-H":
|
||||||
output_format = 1
|
output_format = 1
|
||||||
single_line = 0
|
single_line = 0
|
||||||
elif opt == "--minlevel" or opt == "-m":
|
elif opt == "--minlevel" or opt == "-m":
|
||||||
|
|
|
@ -49,7 +49,7 @@ flawfinder \- lexically find potential security flaws ("hits") in source code
|
||||||
.RB [ \-\-context | \-c ]
|
.RB [ \-\-context | \-c ]
|
||||||
.RB [ \-\-columns | \-C ]
|
.RB [ \-\-columns | \-C ]
|
||||||
.RB [ \-\-dataonly | \-D ]
|
.RB [ \-\-dataonly | \-D ]
|
||||||
.RB [ \-\-html ]
|
.RB [ \-\-html | \-H ]
|
||||||
.RB [ \-\-immediate | -i ]
|
.RB [ \-\-immediate | -i ]
|
||||||
.RB [ \-\-singleline | \-S ]
|
.RB [ \-\-singleline | \-S ]
|
||||||
.RB [ \-\-omittime ]
|
.RB [ \-\-omittime ]
|
||||||
|
@ -474,6 +474,8 @@ Use this along with \-\-quiet to see just the data itself.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.BI \-\-html
|
.BI \-\-html
|
||||||
|
.TP
|
||||||
|
.BI \-H
|
||||||
Format the output as HTML instead of as simple text.
|
Format the output as HTML instead of as simple text.
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
|
|
Loading…
Reference in New Issue