Skip to content

Commit 8ee8b9f

Browse files
authored
Merge pull request #2966 from Suor/relink
ui: reorder checkout options to go from common to rare
2 parents 85b1721 + 6c0cda8 commit 8ee8b9f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

dvc/command/checkout.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,31 @@ def add_parser(subparsers, parent_parser):
2929
formatter_class=argparse.RawDescriptionHelpFormatter,
3030
)
3131
checkout_parser.add_argument(
32-
"-f",
33-
"--force",
32+
"-d",
33+
"--with-deps",
3434
action="store_true",
3535
default=False,
36-
help="Do not prompt when removing working directory files.",
36+
help="Checkout all dependencies of the specified target.",
3737
)
3838
checkout_parser.add_argument(
39-
"--relink",
39+
"-R",
40+
"--recursive",
4041
action="store_true",
4142
default=False,
42-
help="Recreate links or copies from cache to workspace.",
43+
help="Checkout all subdirectories of the specified directory.",
4344
)
4445
checkout_parser.add_argument(
45-
"-d",
46-
"--with-deps",
46+
"-f",
47+
"--force",
4748
action="store_true",
4849
default=False,
49-
help="Checkout all dependencies of the specified target.",
50+
help="Do not prompt when removing working directory files.",
5051
)
5152
checkout_parser.add_argument(
52-
"-R",
53-
"--recursive",
53+
"--relink",
5454
action="store_true",
5555
default=False,
56-
help="Checkout all subdirectories of the specified directory.",
56+
help="Recreate links or copies from cache to workspace.",
5757
)
5858
checkout_parser.add_argument(
5959
"targets",

0 commit comments

Comments
 (0)