From c16f8825dc47fe7e1d8594c3a47eae497407c604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Santos?= Date: Fri, 10 Jan 2020 18:27:04 +0000 Subject: [PATCH] import: update documentation Fixes #3077 --- dvc/command/get.py | 10 +++++++--- dvc/command/imp.py | 12 ++++++------ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/dvc/command/get.py b/dvc/command/get.py index 7d5af18c7..38ad49000 100644 --- a/dvc/command/get.py +++ b/dvc/command/get.py @@ -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", diff --git a/dvc/command/imp.py b/dvc/command/imp.py index 9315f0374..b3fe61a1b 100644 --- a/dvc/command/imp.py +++ b/dvc/command/imp.py @@ -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."