Skip to content

Commit

Permalink
cli: Update "report" help info to be more useful
Browse files Browse the repository at this point in the history
The current 'tern -h' output does not contain any information about
the types of reports available to generate. This is because the report
formats are part of a subparser which does not display by default. This
commit adds information that points the user to a command they can use
to  display the report format types.

Signed-off-by: Rose Judge <[email protected]>
  • Loading branch information
rnjudge authored and Nisha K committed Sep 6, 2019
1 parent 608705a commit 0271b9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tern/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ def main():
subparsers = parser.add_subparsers(help='Subcommands')
# subparser for report
parser_report = subparsers.add_parser('report',
help="Create a report")
help="Create a BoM report."
" Run 'tern report -h' for"
" format options.")
parser_report.add_argument('-d', '--dockerfile', type=check_file_existence,
help="Dockerfile used to build the Docker"
" image")
Expand Down

0 comments on commit 0271b9d

Please sign in to comment.