import: update documentation

Fixes #3077
This commit is contained in:
Fábio Santos
2020-01-10 22:28:24 +00:00
parent 5b36ffd60e
commit c16f8825dc
2 changed files with 13 additions and 9 deletions
+7 -3
View File
@@ -31,7 +31,9 @@ class CmdGet(CmdBaseNoRepo):
def add_parser(subparsers, parent_parser):
GET_HELP = "Download a file or directory from any DVC project or Git repository"
GET_HELP = (
"Download a file or directory from any DVC project or Git repository"
)
get_parser = subparsers.add_parser(
"get",
parents=[parent_parser],
@@ -40,10 +42,12 @@ def add_parser(subparsers, parent_parser):
formatter_class=argparse.RawDescriptionHelpFormatter,
)
get_parser.add_argument(
"url", help="Location of DVC project or Git repository to download from"
"url",
help="Location of DVC project or Git repository to download from.",
)
get_parser.add_argument(
"path", help="Path to a file or directory within the project or repository"
"path",
help="Path to a file or directory within the project or repository",
)
get_parser.add_argument(
"-o",
+6 -6
View File
@@ -30,7 +30,8 @@ class CmdImport(CmdBase):
def add_parser(subparsers, parent_parser):
IMPORT_HELP = (
"Download data from DVC repository and take it under DVC control."
"Download data from DVC project or Git repository and take it under "
"DVC control."
)
import_parser = subparsers.add_parser(
@@ -41,13 +42,12 @@ def add_parser(subparsers, parent_parser):
formatter_class=argparse.RawTextHelpFormatter,
)
import_parser.add_argument(
"url", help="URL of Git repository with DVC project to download from."
"url",
help="Location of Git repository with DVC project to download from.",
)
import_parser.add_argument("path", help="Path to data within DVC project.")
import_parser.add_argument(
"path", help="Path to data within DVC repository."
)
import_parser.add_argument(
"-o", "--out", nargs="?", help="Destination path to put data to."
"-o", "--out", nargs="?", help="Destination path to put data in."
)
import_parser.add_argument(
"--rev", nargs="?", help="DVC repository git revision."