mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
Revert "import-db: fix metavar" (#10228)
This commit is contained in:
@@ -54,8 +54,8 @@ def add_parser(subparsers, parent_parser):
|
||||
formatter_class=formatter.RawTextHelpFormatter,
|
||||
)
|
||||
group = import_parser.add_mutually_exclusive_group(required=True)
|
||||
group.add_argument("--sql", help="SQL query to snapshot", metavar="sql")
|
||||
group.add_argument("--table", help="Table to snapshot", metavar="table")
|
||||
group.add_argument("--sql", help="SQL query to snapshot")
|
||||
group.add_argument("--table", help="Table to snapshot")
|
||||
import_parser.add_argument(
|
||||
"--output-format",
|
||||
default="csv",
|
||||
@@ -67,6 +67,7 @@ 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
|
||||
@@ -80,7 +81,6 @@ 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",
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user