Skip to content

Commit

Permalink
cli: config: add docs for --show-origin
Browse files Browse the repository at this point in the history
Support the --show-origin option for config, which, similar to git,
prefixes each config option with the source file it originated from.

References iterative/dvc#5119
References iterative/dvc#5126
  • Loading branch information
mrstegeman committed Dec 31, 2020
1 parent e7eb61f commit e27aab9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion content/docs/command-reference/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Get or set <abbr>project</abbr>-level (or global) DVC configuration options.

```usage
usage: dvc config [-h] [--global | --system | --local] [-q | -v] [-u]
[-l] [name] [value]
[-l] [--show-origin] [name] [value]
positional arguments:
name Option name in format: section.option or remote.name.option
Expand Down Expand Up @@ -72,6 +72,9 @@ multiple projects and users, respectively:

- `-l`, `--list` - lists all defined config values.

- `--show-origin` - when listing or getting config values, also show the file
the config value is saved in.

- `-h`, `--help` - prints the usage/help message, and exit.

- `-q`, `--quiet` - do not write anything to standard output. Exit with 0 if no
Expand Down

0 comments on commit e27aab9

Please sign in to comment.