summaryrefslogtreecommitdiff
path: root/cmd/run.go
diff options
context:
space:
mode:
authorPhilipp Tanlak <philipp.tanlak@gmail.com>2023-12-04 17:35:06 +0100
committerGitHub <noreply@github.com>2023-12-04 17:35:06 +0100
commit8c68e0ed414bfb323d6e94db55c95db13797ef8e (patch)
tree379fd505aec7e54d9f7dcc7b7d6ae5264f4b956a /cmd/run.go
parent807b9a1693645270609d4d795aa2b8eeacaae40e (diff)
Make output file and format configurable (#24)
Diffstat (limited to 'cmd/run.go')
-rw-r--r--cmd/run.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/run.go b/cmd/run.go
index 8c1a39d..a02b2ec 100644
--- a/cmd/run.go
+++ b/cmd/run.go
@@ -53,5 +53,11 @@ Examples:
# Follow paginated links.
$ flyscrape run example.js --depth 5 --follow ".next-button > a"
+
+ # Set the output format to ndjson.
+ $ flyscrape run example.js --output.format ndjson
+
+ # Write the output to a file.
+ $ flyscrape run example.js --output.file results.json
`[1:])
}