Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get/import: update output (again?) #3196

Closed
jorgeorpinel opened this issue Jan 19, 2020 · 3 comments · Fixed by #3214
Closed

get/import: update output (again?) #3196

jorgeorpinel opened this issue Jan 19, 2020 · 3 comments · Fixed by #3214
Assignees
Labels
enhancement Enhances DVC p1-important Important, aka current backlog of things to do ui user interface / interaction

Comments

@jorgeorpinel
Copy link
Contributor

jorgeorpinel commented Jan 19, 2020

I'm not sure what happened because I think we've changed this recently (e.g. #3077), but I'm seeing:

$ dvc version
DVC version: 0.80.0
Python version: 3.7.6
Platform: Darwin-19.0.0-x86_64-i386-64bit
Binary: False
Package: brew

$ dvc get -h
usage: dvc get [-h] [-q | -v] [-o [OUT]] [--rev [REV]] url path

Download/copy files or directories from DVC repository...

positional arguments:
  url                   URL of Git repository with DVC project to download
                        from.
  path                  Path to a file or directory within a DVC repository.
...

$ dvc import -h
usage: dvc import [-h] [-q | -v] [-o [OUT]] [--rev [REV]] url path

Download data from DVC repository and take it under DVC control...

positional arguments:
  url                   URL of Git repository with DVC project to download from.
  path                  Path to data within DVC repository.
...

The descriptions of the commands as well as of their arguments are outdated. Maybe there was a bad merge somewhere but from what I'm seeing in the docs, they should be something like:

get
Download file or directory from any DVC project or Git repository.

import
Download file or directory from any DVC project or Git repository into the workspace, and track it.

positional arguments

  url         Location of DVC project or Git repository to download from
  path        Path to a file or directory within the project or repository

which I remember came from PRs to this repo. So anyway, we should update it again, I think. I can do it myself if people agree.

@triage-new-issues triage-new-issues bot added the triage Needs to be triaged label Jan 19, 2020
@jorgeorpinel jorgeorpinel added the enhancement Enhances DVC label Jan 19, 2020
@triage-new-issues triage-new-issues bot removed the triage Needs to be triaged label Jan 19, 2020
@efiop efiop added p1-important Important, aka current backlog of things to do ui user interface / interaction labels Jan 21, 2020
@pared pared self-assigned this Jan 22, 2020
@pared
Copy link
Contributor

pared commented Jan 22, 2020

Checked the master and the latest version (0.82.1) and it seems to me that help output is proper.

It seems that 0.80.0 was released at the beginning of January, so it might be that those changes were not incorporated back then.

@jorgeorpinel ?

@jorgeorpinel
Copy link
Contributor Author

jorgeorpinel commented Jan 22, 2020

Hm yeah this newest version seems closer to correct:

dvc/dvc/command/get.py

Lines 53 to 56 in 04161ad

def add_parser(subparsers, parent_parser):
GET_HELP = (
"Download a file or directory from any DVC project or Git repository."
)
unnecessary "a" but its OK

dvc/dvc/command/get.py

Lines 64 to 71 in 04161ad

get_parser.add_argument(
"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",
)
perfect
and

dvc/dvc/command/imp.py

Lines 31 to 35 in 04161ad

def add_parser(subparsers, parent_parser):
IMPORT_HELP = (
"Download a file or directory from any DVC project or Git repository "
"and take it under DVC control."
)
we no longer like the "take under control" phrase (see iterative/dvc.org/issues/719) so let's use "Download file or directory from any DVC project or Git repository into the workspace, and track it." as suggested above.

dvc/dvc/command/imp.py

Lines 44 to 51 in 04161ad

import_parser.add_argument(
"url",
help="Location of DVC project or Git repository to download from",
)
import_parser.add_argument(
"path",
help="Path to a file or directory within the project or repository",
)
perfect
Let me think...
EDIT: I've updated the comment with notes on what to change, will open a small PR for this.

@jorgeorpinel
Copy link
Contributor Author

will open a small PR for this.

Done: #3214

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhances DVC p1-important Important, aka current backlog of things to do ui user interface / interaction
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants