@@ -147,6 +147,20 @@ def _turn_env_vars_into_dict(ctx, params, value):
147147@click .option (
148148 "--plugin" , "plugin_names" , multiple = True , default = ["xcode" , "gcov" , "pycoverage" ]
149149)
150+ @click .option (
151+ "-Z" ,
152+ "--fail-on-error" ,
153+ "fail_on_error" ,
154+ is_flag = True ,
155+ help = "Exit with non-zero code in case of error uploading." ,
156+ )
157+ @click .option (
158+ "-d" ,
159+ "--dry-run" ,
160+ "dry_run" ,
161+ is_flag = True ,
162+ help = "Don't upload files to Codecov" ,
163+ )
150164@click .option ("--use-new-uploader" , "is_using_new_uploader" , default = False )
151165@click .option (
152166 "--git-service" ,
@@ -175,6 +189,8 @@ def do_upload(
175189 slug : typing .Optional [str ],
176190 pull_request_number : typing .Optional [str ],
177191 is_using_new_uploader : bool ,
192+ fail_on_error : bool ,
193+ dry_run : bool ,
178194 git_service : typing .Optional [str ],
179195):
180196 versioning_system = ctx .obj ["versioning_system" ]
@@ -228,5 +244,7 @@ def do_upload(
228244 slug = slug ,
229245 pull_request_number = pull_request_number ,
230246 is_using_new_uploader = is_using_new_uploader ,
231- git_service = git_service
247+ fail_on_error = fail_on_error ,
248+ dry_run = dry_run ,
249+ git_service = git_service ,
232250 )
0 commit comments