help: fixed -h output for diff and remote subcommands

Fix #2169
This commit is contained in:
Jorge Orpinel
2019-06-26 14:05:18 -05:00
parent 5b2405f3be
commit 79b22fc776
2 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -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="?",
+11 -5
View File
@@ -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",