Merge pull request #1532 from iterative/move-description-improvements

Move description improvements
This commit is contained in:
Ruslan Kuprieiev
2019-01-26 13:30:25 +02:00
committed by GitHub
+9 -5
View File
@@ -16,12 +16,16 @@ class CmdMove(CmdBase):
def add_parser(subparsers, parent_parser):
MOVE_HELP = 'Move output of DVC file.'
description = "Rename or move a data file or a directory that "\
"is under DVC control. It renames and modifies "\
"the corresponding DVC file to reflect the changes."
help = "Rename or move a DVC controlled data file or a directory."
move_parser = subparsers.add_parser(
'move',
parents=[parent_parser],
description=MOVE_HELP,
help=MOVE_HELP)
move_parser.add_argument('src', help='Source.')
move_parser.add_argument('dst', help='Destination.')
description=description,
help=help)
move_parser.add_argument('src',
help='Source path to a data file or directory.')
move_parser.add_argument('dst', help='Destination path.')
move_parser.set_defaults(func=CmdMove)