From 6c0cda8c7b23ebe1af0e3b24df0df3a53ef13002 Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Tue, 17 Dec 2019 18:40:26 +0700 Subject: [PATCH] ui: reorder checkout options to go from common to rare This is the order we use in docs. It also makes sense. --- dvc/command/checkout.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) 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="*",