diff --git a/tern/__main__.py b/tern/__main__.py index e352f521..bb45bd04 100755 --- a/tern/__main__.py +++ b/tern/__main__.py @@ -208,6 +208,17 @@ def main(): help="Generate a report for the current state " "of the filesystem. This is useful when " "running Tern in a new namespace or VM.") + parser_report.add_argument('-ctx', '--with-context', metavar='FILES', + nargs='+', + help="""Generate a report taking into account + reports generated by previous runs against + the same filesystem. This option is meant to + be used with the --live option like this: + tern report --live -ctx + report1 report2 report3... -f json -o report4. + The order of the reports must correspond to the + order in which they were generated. Supported + input report formats are: json""") # subparser for dockerfile lock parser_lock = subparsers.add_parser('lock',