From 6e70db113d0726064f4d1adb78c76faa684f4ae3 Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Sat, 26 Jan 2019 01:30:49 -0800 Subject: [PATCH 1/2] dvc move: improve help and description messages --- dvc/command/move.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dvc/command/move.py b/dvc/command/move.py index 803e4d4a5..8d56105ce 100644 --- a/dvc/command/move.py +++ b/dvc/command/move.py @@ -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) From b1a93ffc143d4d9569b6c5cedd3dc172620f89ee Mon Sep 17 00:00:00 2001 From: Ivan Shcheklein Date: Sat, 26 Jan 2019 01:35:14 -0800 Subject: [PATCH 2/2] add a newline to keep the total length under 80 chars --- dvc/command/move.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/command/move.py b/dvc/command/move.py index 8d56105ce..f738e69bc 100644 --- a/dvc/command/move.py +++ b/dvc/command/move.py @@ -25,6 +25,7 @@ def add_parser(subparsers, parent_parser): parents=[parent_parser], description=description, help=help) - move_parser.add_argument('src', help='Source path to a data file or directory.') + 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)