Skip to content

Commit

Permalink
import-db: fix metavar (#10226)
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry authored Jan 11, 2024
1 parent 7166922 commit 1c06302
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dvc/commands/imp_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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="<path>",
).complete = completion.FILE
Expand All @@ -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",
)

Expand Down

0 comments on commit 1c06302

Please sign in to comment.