From a4ae6f48463d0b31d070c070dd2cf4139f264ae9 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Tue, 21 Jul 2020 14:16:29 -0400 Subject: [PATCH] Document the --datasource-header flag Signed-off-by: Dave Henderson --- docs/content/usage.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/content/usage.md b/docs/content/usage.md index 37501122..3966054d 100644 --- a/docs/content/usage.md +++ b/docs/content/usage.md @@ -152,6 +152,16 @@ A few different forms are valid: - `mydata.json` - This form infers the name from the file name (without extension). Only valid for files in the current directory. + +### `--datasource-header`/`-H` + +Provides one (or more) HTTP headers to be sent along with the matching +HTTP-based datasource. Value is in the form `alias="HeaderName: header-value"`. + +Note that the `alias` does not need to map to a datasource specified in a +command-line flag, but can be used in dynamically-defined datasources (see +[`defineDatasource`](../functions/data#definedatasource)). + ### `--context`/`-c` Add a data source in `name=URL` form, and make it available in the [default context][] as `.`. The special name `.` (period) can be used to override the entire default context.