Skip to content

Commit 9f177fd

Browse files
committed
Make --version output valid YAML for parsing #2856
This commit adds a colon so the --version output goes from ScanCode version 30.1.0 ScanCode Output Format version 2.0.0 SPDX License list version 3.15 to ScanCode version: 30.1.0 ScanCode Output Format version: 2.0.0 SPDX License list version: 3.15 This will make the output easier to parse since it is valid YAML now. Signed-off-by: Kevin Ji <kyji1011@gmail.com>
1 parent 4bd9c8e commit 9f177fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/scancode/cli.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def print_examples(ctx, param, value):
9393
def print_version(ctx, param, value):
9494
if not value or ctx.resilient_parsing:
9595
return
96-
click.echo('ScanCode version ' + scancode_config.__version__)
97-
click.echo('ScanCode Output Format version ' + scancode_config.__output_format_version__)
98-
click.echo('SPDX License list version ' + scancode_config.spdx_license_list_version)
96+
click.echo('ScanCode version: ' + scancode_config.__version__)
97+
click.echo('ScanCode Output Format version: ' + scancode_config.__output_format_version__)
98+
click.echo('SPDX License list version: ' + scancode_config.spdx_license_list_version)
9999
ctx.exit()
100100

101101

0 commit comments

Comments
 (0)