diff --git a/dvc/command/checkout.py b/dvc/command/checkout.py index 3fb208334..507dca252 100644 --- a/dvc/command/checkout.py +++ b/dvc/command/checkout.py @@ -28,19 +28,6 @@ def add_parser(subparsers, parent_parser): help=CHECKOUT_HELP, formatter_class=argparse.RawDescriptionHelpFormatter, ) - checkout_parser.add_argument( - "-f", - "--force", - action="store_true", - default=False, - help="Do not prompt when removing working directory files.", - ) - checkout_parser.add_argument( - "--relink", - action="store_true", - default=False, - help="Recreate links or copies from cache to workspace.", - ) checkout_parser.add_argument( "-d", "--with-deps", @@ -55,6 +42,19 @@ def add_parser(subparsers, parent_parser): default=False, help="Checkout all subdirectories of the specified directory.", ) + checkout_parser.add_argument( + "-f", + "--force", + action="store_true", + default=False, + help="Do not prompt when removing working directory files.", + ) + checkout_parser.add_argument( + "--relink", + action="store_true", + default=False, + help="Recreate links or copies from cache to workspace.", + ) checkout_parser.add_argument( "targets", nargs="*",