mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
command: rever accidental narg="+" changes in recent commit
Per https://github.com/iterative/dvc/pull/2112#pullrequestreview-255082022
This commit is contained in:
+2
-2
@@ -46,7 +46,7 @@ def add_parser(subparsers, parent_parser):
|
|||||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||||
)
|
)
|
||||||
lock_parser.add_argument(
|
lock_parser.add_argument(
|
||||||
"targets", nargs="*", help="DVC-files to lock. Optional."
|
"targets", nargs="+", help="DVC-files to lock. Optional."
|
||||||
)
|
)
|
||||||
lock_parser.set_defaults(func=CmdLock)
|
lock_parser.set_defaults(func=CmdLock)
|
||||||
|
|
||||||
@@ -59,6 +59,6 @@ def add_parser(subparsers, parent_parser):
|
|||||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||||
)
|
)
|
||||||
unlock_parser.add_argument(
|
unlock_parser.add_argument(
|
||||||
"targets", nargs="*", help="DVC-files to unlock. Optional."
|
"targets", nargs="+", help="DVC-files to unlock. Optional."
|
||||||
)
|
)
|
||||||
unlock_parser.set_defaults(func=CmdUnlock)
|
unlock_parser.set_defaults(func=CmdUnlock)
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ def add_parser(subparsers, parent_parser):
|
|||||||
)
|
)
|
||||||
remove_parser.add_argument(
|
remove_parser.add_argument(
|
||||||
"targets",
|
"targets",
|
||||||
nargs="*",
|
nargs="+",
|
||||||
help="DVC-files to remove. Optional."
|
help="DVC-files to remove. Optional."
|
||||||
"(Finds all DVC-files in the workspace by default.)",
|
"(Finds all DVC-files in the workspace by default.)",
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user