Skip to content

Commit

Permalink
import: update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiosantoscode committed Jan 10, 2020
1 parent 724283f commit f5cd424
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
10 changes: 7 additions & 3 deletions dvc/command/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ def run(self):


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],
Expand All @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions dvc/command/imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def run(self):

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(
Expand All @@ -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."
Expand Down

0 comments on commit f5cd424

Please sign in to comment.