From 276e90ee5d4232b2d00acab297e8efec5768effa Mon Sep 17 00:00:00 2001 From: vibhor98 Date: Sun, 16 Jun 2019 17:29:01 +0530 Subject: [PATCH 1/3] Reorder command options. --- dvc/command/commit.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dvc/command/commit.py b/dvc/command/commit.py index 8ba3b99f3..14a6e097a 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( - "-f", - "--force", - action="store_true", - default=False, - help="Commit even if checksums for dependencies/outputs changed.", - ) commit_parser.add_argument( "-d", "--with-deps", @@ -57,6 +50,13 @@ def add_parser(subparsers, parent_parser): default=False, help="Commit all dependencies of the specified target.", ) + commit_parser.add_argument( + "-f", + "--force", + action="store_true", + default=False, + help="Commit even if checksums for dependencies/outputs changed.", + ) commit_parser.add_argument( "-R", "--recursive", From 62ee6b6b9a18c342ee34c9682439c358b58e6239 Mon Sep 17 00:00:00 2001 From: vibhor98 Date: Wed, 19 Jun 2019 20:55:46 +0530 Subject: [PATCH 2/3] Made review changes. --- dvc/command/checkout.py | 14 +++++++------- dvc/command/commit.py | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) 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", From 55d3153734398a4d7ce6fa300b7af0767ae69365 Mon Sep 17 00:00:00 2001 From: vibhor98 Date: Wed, 19 Jun 2019 21:42:39 +0530 Subject: [PATCH 3/3] Reorder commands in pull --- dvc/command/data_sync.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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",