diff options
author | CatalinStratu <catalinstratu45@gmail.com> | 2022-03-31 03:30:42 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-30 20:30:42 -0400 |
commit | 7e3a22cfccbda131ebfb0d29e089a274950726ce (patch) | |
tree | f05b5515ac82a7d6f855df768f1ec29ae9e42105 /examples/9-tvtojson | |
parent | d93d09feb83ecac722c16d3ccaa97c961c695465 (diff) | |
download | spdx-tools-7e3a22cfccbda131ebfb0d29e089a274950726ce.tar.gz |
examples: Add comments with sample run commands (#123)
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Diffstat (limited to 'examples/9-tvtojson')
-rw-r--r-- | examples/9-tvtojson/exampletvtojson.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/9-tvtojson/exampletvtojson.go b/examples/9-tvtojson/exampletvtojson.go index 2c6ec7e..8ebac7c 100644 --- a/examples/9-tvtojson/exampletvtojson.go +++ b/examples/9-tvtojson/exampletvtojson.go @@ -4,7 +4,7 @@ // This example demonstrates loading an SPDX tag-value file from disk into memory, // and re-saving it to a different json file on disk. - +// Run project: go run exampletvtojson.go ../sample-docs/example1/spdx/SPDXTagExample-v2.2.spdx example.json package main import ( @@ -20,7 +20,7 @@ func main() { // check that we've received the right number of arguments args := os.Args if len(args) != 3 { - fmt.Printf("Usage: %v <spdx-file-in> <spdx-file-out>\n", args[0]) + fmt.Printf("Usage: %v <spdx-file-in> <json-file-out>\n", args[0]) fmt.Printf(" Load SPDX 2.2 tag-value file <spdx-file-in>, and\n") fmt.Printf(" save it out to <spdx-file-out>.\n") return |