From 93fe4abcd065c8d599f738b38d8f61a42b95bb71 Mon Sep 17 00:00:00 2001 From: skshetry <18718008+skshetry@users.noreply.github.com> Date: Thu, 11 Jan 2024 11:35:08 +0545 Subject: [PATCH] import-db: fix metavar (#10226) --- dvc/commands/imp_db.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dvc/commands/imp_db.py b/dvc/commands/imp_db.py index d4f6b3d5a43..be8b8408446 100644 --- a/dvc/commands/imp_db.py +++ b/dvc/commands/imp_db.py @@ -56,8 +56,8 @@ def add_parser(subparsers, parent_parser): formatter_class=argparse.RawTextHelpFormatter, ) group = import_parser.add_mutually_exclusive_group(required=True) - group.add_argument("--sql", help="SQL query to snapshot") - group.add_argument("--table", help="Table to snapshot") + group.add_argument("--sql", help="SQL query to snapshot", metavar="sql") + group.add_argument("--table", help="Table to snapshot", metavar="table") import_parser.add_argument( "--output-format", default="csv", @@ -69,7 +69,6 @@ def add_parser(subparsers, parent_parser): import_parser.add_argument( "-o", "--out", - nargs="?", help="Destination path to download files to", metavar="", ).complete = completion.FILE @@ -83,6 +82,7 @@ def add_parser(subparsers, parent_parser): import_parser.add_argument( "--conn", required=True, + metavar="conn", help="Database connection to use, needs to be set in config", )