aboutsummaryrefslogtreecommitdiff
path: root/examples/10-jsonloader
diff options
context:
space:
mode:
authorCatalinStratu <catalinstratu45@gmail.com>2022-03-31 03:30:42 +0300
committerGitHub <noreply@github.com>2022-03-30 20:30:42 -0400
commit7e3a22cfccbda131ebfb0d29e089a274950726ce (patch)
treef05b5515ac82a7d6f855df768f1ec29ae9e42105 /examples/10-jsonloader
parentd93d09feb83ecac722c16d3ccaa97c961c695465 (diff)
downloadspdx-tools-7e3a22cfccbda131ebfb0d29e089a274950726ce.tar.gz
examples: Add comments with sample run commands (#123)
Signed-off-by: CatalinStratu <catalinstratu45@gmail.com>
Diffstat (limited to 'examples/10-jsonloader')
-rw-r--r--examples/10-jsonloader/example_json_loader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/10-jsonloader/example_json_loader.go b/examples/10-jsonloader/example_json_loader.go
index 96f47fd..c5d63b9 100644
--- a/examples/10-jsonloader/example_json_loader.go
+++ b/examples/10-jsonloader/example_json_loader.go
@@ -4,7 +4,7 @@
// This example demonstrates loading an SPDX json from disk into memory,
// and then logging out some attributes to the console .
-
+// Run project: go run example_json_loader.go ../sample-docs/json/SPDXJSONExample-v2.2.spdx.json example.spdx
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 <json-file-in> <spdx-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