From 79b22fc7767b93acfc61f93791848bfb638e7aeb Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Tue, 25 Jun 2019 13:11:53 -0500 Subject: [PATCH] help: fixed -h output for `diff` and `remote` subcommands Fix #2169 --- dvc/command/diff.py | 2 +- dvc/command/remote.py | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/dvc/command/diff.py b/dvc/command/diff.py index 901223d04..b62ef1c29 100644 --- a/dvc/command/diff.py +++ b/dvc/command/diff.py @@ -157,7 +157,7 @@ def add_parser(subparsers, parent_parser): diff_parser.add_argument( "b_ref", help=( - "Git reference untill which diff calculates, if omitted " + "Git reference until which diff calculates, if omitted " "diff shows the difference between current HEAD and a_ref" ), nargs="?", diff --git a/dvc/command/remote.py b/dvc/command/remote.py index 4e0415556..490bbbe48 100644 --- a/dvc/command/remote.py +++ b/dvc/command/remote.py @@ -89,7 +89,7 @@ def add_parser(subparsers, parent_parser): help=REMOTE_ADD_HELP, formatter_class=argparse.RawDescriptionHelpFormatter, ) - remote_add_parser.add_argument("name", help="Name.") + remote_add_parser.add_argument("name", help="Name of the remote") remote_add_parser.add_argument( "url", help="URL. See full list of supported urls at " "man.dvc.org/remote", @@ -138,7 +138,9 @@ def add_parser(subparsers, parent_parser): help=REMOTE_REMOVE_HELP, formatter_class=argparse.RawDescriptionHelpFormatter, ) - remote_remove_parser.add_argument("name", help="Name") + remote_remove_parser.add_argument( + "name", help="Name of the remote to remove." + ) remote_remove_parser.set_defaults(func=CmdRemoteRemove) REMOTE_MODIFY_HELP = "Modify remote." @@ -149,9 +151,13 @@ def add_parser(subparsers, parent_parser): help=REMOTE_MODIFY_HELP, formatter_class=argparse.RawDescriptionHelpFormatter, ) - remote_modify_parser.add_argument("name", help="Name.") - remote_modify_parser.add_argument("option", help="Option.") - remote_modify_parser.add_argument("value", nargs="?", help="Value.") + remote_modify_parser.add_argument("name", help="Name of the remote.") + remote_modify_parser.add_argument( + "option", help="Name of the option to modify." + ) + remote_modify_parser.add_argument( + "value", nargs="?", help="(optional) Value of the option." + ) remote_modify_parser.add_argument( "-u", "--unset",