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/commit.py b/dvc/command/commit.py index 14a6e097a..8ba3b99f3 100644 --- a/dvc/command/commit.py +++ b/dvc/command/commit.py @@ -43,13 +43,6 @@ def add_parser(subparsers, parent_parser): help=COMMIT_HELP, formatter_class=argparse.RawDescriptionHelpFormatter, ) - commit_parser.add_argument( - "-d", - "--with-deps", - action="store_true", - default=False, - help="Commit all dependencies of the specified target.", - ) commit_parser.add_argument( "-f", "--force", @@ -57,6 +50,13 @@ def add_parser(subparsers, parent_parser): default=False, help="Commit even if checksums for dependencies/outputs changed.", ) + commit_parser.add_argument( + "-d", + "--with-deps", + action="store_true", + default=False, + help="Commit all dependencies of the specified target.", + ) commit_parser.add_argument( "-R", "--recursive",