Skip to content

Commit c16f882

Browse files
import: update documentation
Fixes #3077
1 parent 5b36ffd commit c16f882

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

dvc/command/get.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def run(self):
3131

3232

3333
def add_parser(subparsers, parent_parser):
34-
GET_HELP = "Download a file or directory from any DVC project or Git repository"
34+
GET_HELP = (
35+
"Download a file or directory from any DVC project or Git repository"
36+
)
3537
get_parser = subparsers.add_parser(
3638
"get",
3739
parents=[parent_parser],
@@ -40,10 +42,12 @@ def add_parser(subparsers, parent_parser):
4042
formatter_class=argparse.RawDescriptionHelpFormatter,
4143
)
4244
get_parser.add_argument(
43-
"url", help="Location of DVC project or Git repository to download from"
45+
"url",
46+
help="Location of DVC project or Git repository to download from.",
4447
)
4548
get_parser.add_argument(
46-
"path", help="Path to a file or directory within the project or repository"
49+
"path",
50+
help="Path to a file or directory within the project or repository",
4751
)
4852
get_parser.add_argument(
4953
"-o",

dvc/command/imp.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ def run(self):
3030

3131
def add_parser(subparsers, parent_parser):
3232
IMPORT_HELP = (
33-
"Download data from DVC repository and take it under DVC control."
33+
"Download data from DVC project or Git repository and take it under "
34+
"DVC control."
3435
)
3536

3637
import_parser = subparsers.add_parser(
@@ -41,13 +42,12 @@ def add_parser(subparsers, parent_parser):
4142
formatter_class=argparse.RawTextHelpFormatter,
4243
)
4344
import_parser.add_argument(
44-
"url", help="URL of Git repository with DVC project to download from."
45+
"url",
46+
help="Location of Git repository with DVC project to download from.",
4547
)
48+
import_parser.add_argument("path", help="Path to data within DVC project.")
4649
import_parser.add_argument(
47-
"path", help="Path to data within DVC repository."
48-
)
49-
import_parser.add_argument(
50-
"-o", "--out", nargs="?", help="Destination path to put data to."
50+
"-o", "--out", nargs="?", help="Destination path to put data in."
5151
)
5252
import_parser.add_argument(
5353
"--rev", nargs="?", help="DVC repository git revision."

0 commit comments

Comments
 (0)