File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change @@ -194,8 +194,8 @@ def add_parser(subparsers, _parent_parser):
194
194
)
195
195
pull_parser .add_argument (
196
196
"--run-cache" ,
197
- action = "store_true" ,
198
- default = False ,
197
+ action = argparse . BooleanOptionalAction ,
198
+ default = True ,
199
199
help = "Fetch run history for all stages." ,
200
200
)
201
201
pull_parser .add_argument (
@@ -262,8 +262,8 @@ def add_parser(subparsers, _parent_parser):
262
262
)
263
263
push_parser .add_argument (
264
264
"--run-cache" ,
265
- action = "store_true" ,
266
- default = False ,
265
+ action = argparse . BooleanOptionalAction ,
266
+ default = True ,
267
267
help = "Push run history for all stages." ,
268
268
)
269
269
push_parser .add_argument (
@@ -324,8 +324,8 @@ def add_parser(subparsers, _parent_parser):
324
324
)
325
325
fetch_parser .add_argument (
326
326
"--run-cache" ,
327
- action = "store_true" ,
328
- default = False ,
327
+ action = argparse . BooleanOptionalAction ,
328
+ default = True ,
329
329
help = "Fetch run history for all stages." ,
330
330
)
331
331
fetch_parser .add_argument (
Original file line number Diff line number Diff line change
1
+ import argparse
2
+
1
3
from dvc .cli import formatter
2
4
from dvc .cli .command import CmdBase
3
5
from dvc .cli .utils import append_doc_link
@@ -81,8 +83,8 @@ def add_parser(experiments_subparsers, parent_parser):
81
83
)
82
84
experiments_pull_parser .add_argument (
83
85
"--run-cache" ,
84
- action = "store_true" ,
85
- default = False ,
86
+ action = argparse . BooleanOptionalAction ,
87
+ default = True ,
86
88
help = "Pull run history for all stages." ,
87
89
)
88
90
experiments_pull_parser .add_argument (
Original file line number Diff line number Diff line change
1
+ import argparse
1
2
from typing import Any
2
3
3
4
from dvc .cli import completion , formatter
@@ -120,8 +121,8 @@ def add_parser(experiments_subparsers, parent_parser):
120
121
)
121
122
experiments_push_parser .add_argument (
122
123
"--run-cache" ,
123
- action = "store_true" ,
124
- default = False ,
124
+ action = argparse . BooleanOptionalAction ,
125
+ default = True ,
125
126
help = "Push run history for all stages." ,
126
127
)
127
128
experiments_push_parser .add_argument (
You can’t perform that action at this time.
0 commit comments