dvc move: improve help and description messages

This commit is contained in:
Ivan Shcheklein
2019-01-26 01:30:49 -08:00
parent fdb103ed66
commit 6e70db113d
+8 -5
View File
@@ -16,12 +16,15 @@ 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)