From 864f69bef1fac70e3c6e7bb6c7c89cdb215184e3 Mon Sep 17 00:00:00 2001 From: Pavel Ditenbir Date: Sun, 27 Sep 2020 11:48:33 +0700 Subject: [PATCH 1/2] import: add '--file' option --- content/docs/command-reference/import.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/docs/command-reference/import.md b/content/docs/command-reference/import.md index 3f9d9f7a6b..d96fcb7025 100644 --- a/content/docs/command-reference/import.md +++ b/content/docs/command-reference/import.md @@ -10,7 +10,7 @@ the import. ## Synopsis ```usage -usage: dvc import [-h] [-q | -v] [-o ] [--rev ] url path +usage: dvc import [-h] [-q | -v] [-o ] [--file ] [--rev ] url path positional arguments: url Location of DVC or Git repository to download from @@ -86,6 +86,11 @@ repo at `url`) are not supported. current working directory). Directories specified in the path must already exist, otherwise this command will fail. +- `--file ` - specify a path and/or file name for the `.dvc` file + created by this command (e.g. `--file stages/stage.dvc`). This overrides the + default file name: `.dvc`, where `` is the desired file name of + the imported data (`out`). + - `--rev ` - commit hash, branch or tag name, etc. (any [Git revision](https://git-scm.com/docs/revisions)) of the repository to download the file or directory from. The latest commit in `master` (tip of the From 231104d34e440219f3d5cce55e98f88c8edba61b Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Sun, 27 Sep 2020 10:38:08 -0700 Subject: [PATCH 2/2] minor: update syn to fit into single line --- content/docs/command-reference/import.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/content/docs/command-reference/import.md b/content/docs/command-reference/import.md index d96fcb7025..181479ec60 100644 --- a/content/docs/command-reference/import.md +++ b/content/docs/command-reference/import.md @@ -10,7 +10,9 @@ the import. ## Synopsis ```usage -usage: dvc import [-h] [-q | -v] [-o ] [--file ] [--rev ] url path +usage: dvc import [-h] [-q | -v] + [-o ] [--file ] [--rev ] + url path positional arguments: url Location of DVC or Git repository to download from