diff --git a/dvc/command/checkout.py b/dvc/command/checkout.py index 99d376542..6637140b2 100644 --- a/dvc/command/checkout.py +++ b/dvc/command/checkout.py @@ -30,13 +30,6 @@ def add_parser(subparsers, parent_parser): help=CHECKOUT_HELP, formatter_class=argparse.RawDescriptionHelpFormatter, ) - checkout_parser.add_argument( - "-d", - "--with-deps", - action="store_true", - default=False, - help="Checkout all dependencies of the specified target.", - ) checkout_parser.add_argument( "-f", "--force", @@ -44,6 +37,13 @@ def add_parser(subparsers, parent_parser): default=False, help="Do not prompt when removing working directory files.", ) + checkout_parser.add_argument( + "-d", + "--with-deps", + action="store_true", + default=False, + help="Checkout all dependencies of the specified target.", + ) checkout_parser.add_argument( "-R", "--recursive", diff --git a/dvc/command/data_sync.py b/dvc/command/data_sync.py index 724a617f3..6295f4c4d 100644 --- a/dvc/command/data_sync.py +++ b/dvc/command/data_sync.py @@ -156,13 +156,6 @@ def add_parser(subparsers, _parent_parser): default=False, help="Fetch cache for all tags.", ) - pull_parser.add_argument( - "-d", - "--with-deps", - action="store_true", - default=False, - help="Fetch cache for all dependencies of the specified target.", - ) pull_parser.add_argument( "-f", "--force", @@ -170,6 +163,13 @@ def add_parser(subparsers, _parent_parser): default=False, help="Do not prompt when removing working directory files.", ) + pull_parser.add_argument( + "-d", + "--with-deps", + action="store_true", + default=False, + help="Fetch cache for all dependencies of the specified target.", + ) pull_parser.add_argument( "-R", "--recursive",