From d736b31d8bc1e584c13b1f555744d892b4bce6bc Mon Sep 17 00:00:00 2001 From: Jorge Orpinel Date: Mon, 9 Jan 2023 20:31:45 -0600 Subject: [PATCH] `import-url`: Update options order Per https://github.com/iterative/dvc.org/pull/3934 --- dvc/commands/imp_url.py | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/dvc/commands/imp_url.py b/dvc/commands/imp_url.py index e85e714d2..cb53ae654 100644 --- a/dvc/commands/imp_url.py +++ b/dvc/commands/imp_url.py @@ -73,7 +73,18 @@ def add_parser(subparsers, parent_parser): help="Specify name of the .dvc file this command will generate.", metavar="", ).complete = completion.DIR - no_download_exec_group = import_parser.add_mutually_exclusive_group() + import_parser.add_argument( + "--to-remote", + action="store_true", + default=False, + help="Download it directly to the remote", + ) + import_parser.add_argument( + "-r", + "--remote", + help="Remote storage to download to", + metavar="", + ) no_download_exec_group = import_parser.add_mutually_exclusive_group() no_download_exec_group.add_argument( "--no-exec", action="store_true", @@ -87,18 +98,6 @@ def add_parser(subparsers, parent_parser): help="Create .dvc file including target data hash value(s)" " but do not actually download the file(s).", ) - import_parser.add_argument( - "--to-remote", - action="store_true", - default=False, - help="Download it directly to the remote", - ) - import_parser.add_argument( - "-r", - "--remote", - help="Remote storage to download to", - metavar="", - ) import_parser.add_argument( "-j", "--jobs",