Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dvc/command/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="+",
help="Input files/directories to add.",
metavar="targets",
choices=completion.Required.FILE,
)
parser.set_defaults(func=CmdAdd)
1 change: 1 addition & 0 deletions dvc/command/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def add_parser(subparsers, parent_parser):
help="Path to cache directory. Relative paths are resolved relative "
"to the current directory and saved to config relative to the "
"config file location.",
metavar="value",
choices=completion.Required.DIR,
)
cache_dir_parser.set_defaults(func=CmdCacheDir)
1 change: 1 addition & 0 deletions dvc/command/checkout.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def add_parser(subparsers, parent_parser):
nargs="*",
help="DVC-files to checkout. Optional. "
"(Finds all DVC-files in the workspace by default.)",
metavar="targets",
choices=completion.Optional.DVC_FILE,
)
checkout_parser.set_defaults(func=CmdCheckout)
1 change: 1 addition & 0 deletions dvc/command/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ def add_parser(subparsers, parent_parser):
nargs="*",
help="DVC-files to commit. Optional. "
"(Finds all DVC-files in the workspace by default.)",
metavar="targets",
choices=completion.Optional.DVC_FILE,
)
commit_parser.set_defaults(func=CmdCommit)
5 changes: 4 additions & 1 deletion dvc/command/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ def add_parser(subparsers, parent_parser):
help=DAEMON_ANALYTICS_HELP,
)
daemon_analytics_parser.add_argument(
"target", help="Analytics file.", choices=completion.Required.FILE
"target",
help="Analytics file.",
metavar="target",
choices=completion.Required.FILE,
)
daemon_analytics_parser.set_defaults(func=CmdDaemonAnalytics)
1 change: 1 addition & 0 deletions dvc/command/data_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def shared_parent_parser():
nargs="*",
help="Limit command scope to these DVC-files. "
"Using -R, directories to search DVC-files in can also be given.",
metavar="targets",
choices=completion.Optional.DVC_FILE,
)

Expand Down
2 changes: 2 additions & 0 deletions dvc/command/freeze.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="+",
help="DVC-files to freeze.",
metavar="targets",
choices=completion.Required.DVC_FILE,
)
freeze_parser.set_defaults(func=CmdFreeze)
Expand All @@ -59,6 +60,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="+",
help="DVC-files to unfreeze.",
metavar="targets",
choices=completion.Required.DVC_FILE,
)
unfreeze_parser.set_defaults(func=CmdUnfreeze)
1 change: 1 addition & 0 deletions dvc/command/get.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ def add_parser(subparsers, parent_parser):
get_parser.add_argument(
"path",
help="Path to a file or directory within the repository",
metavar="path",
choices=completion.Required.FILE,
)
get_parser.add_argument(
Expand Down
1 change: 1 addition & 0 deletions dvc/command/get_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def add_parser(subparsers, parent_parser):
"out",
nargs="?",
help="Destination path to put data to.",
metavar="out",
choices=completion.Optional.DIR,
)
get_parser.set_defaults(func=CmdGetUrl)
1 change: 1 addition & 0 deletions dvc/command/imp.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def add_parser(subparsers, parent_parser):
import_parser.add_argument(
"path",
help="Path to a file or directory within the repository",
metavar="path",
choices=completion.Required.FILE,
)
import_parser.add_argument(
Expand Down
1 change: 1 addition & 0 deletions dvc/command/imp_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def add_parser(subparsers, parent_parser):
"out",
nargs="?",
help="Destination path to put files to.",
metavar="out",
choices=completion.Optional.DIR,
)
import_parser.add_argument(
Expand Down
1 change: 1 addition & 0 deletions dvc/command/ls/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def add_parser(subparsers, parent_parser):
"path",
nargs="?",
help="Path to directory within the repository to list outputs for",
metavar="path",
choices=completion.Optional.DIR,
)
list_parser.set_defaults(func=CmdList)
1 change: 1 addition & 0 deletions dvc/command/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def add_parser(subparsers, parent_parser):
"Limit command scope to these metric files. Using -R, "
"directories to search metric files in can also be given."
),
metavar="targets",
choices=completion.Optional.FILE,
)
metrics_show_parser.add_argument(
Expand Down
6 changes: 5 additions & 1 deletion dvc/command/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,13 @@ def add_parser(subparsers, parent_parser):
move_parser.add_argument(
"src",
help="Source path to a data file or directory.",
metavar="src",
choices=completion.Required.FILE,
)
move_parser.add_argument(
"dst", help="Destination path.", choices=completion.Required.FILE,
"dst",
help="Destination path.",
metavar="dst",
choices=completion.Required.FILE,
)
move_parser.set_defaults(func=CmdMove)
2 changes: 2 additions & 0 deletions dvc/command/plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="*",
help="Plots files to visualize. Shows all plots by default.",
metavar="targets",
choices=completion.Optional.FILE,
)
_add_props_arguments(plots_show_parser)
Expand Down Expand Up @@ -171,6 +172,7 @@ def add_parser(subparsers, parent_parser):
plots_modify_parser.add_argument(
"target",
help="Metric file to set properties to",
metavar="target",
choices=completion.Required.FILE,
)
_add_props_arguments(plots_modify_parser)
Expand Down
1 change: 1 addition & 0 deletions dvc/command/remove.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="+",
help="DVC-files to remove.",
metavar="targets",
choices=completion.Required.DVC_FILE,
)
remove_parser.set_defaults(func=CmdRemove)
1 change: 1 addition & 0 deletions dvc/command/repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="*",
help=f"Stages to reproduce. '{PIPELINE_FILE}' by default.",
metavar="targets",
choices=completion.Optional.DVC_FILE,
)
repro_parser.add_argument(
Expand Down
1 change: 1 addition & 0 deletions dvc/command/unprotect.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="+",
help="Data files/directories to unprotect.",
metavar="targets",
choices=completion.Required.FILE,
)
unprotect_parser.set_defaults(func=CmdUnprotect)
1 change: 1 addition & 0 deletions dvc/command/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def add_parser(subparsers, parent_parser):
"targets",
nargs="+",
help="DVC-files to update.",
metavar="targets",
choices=completion.Required.DVC_FILE,
)
update_parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def run(self):
"tabulate>=0.8.7",
"pygtrie==2.3.2",
"dpath>=2.0.1,<3",
"shtab>=0.0.2",
"shtab>=1.0.2",
]


Expand Down