@@ -52,7 +52,8 @@ def main(ctx, verbose, quiet, loglevel, rcfile):
5252
5353@main .command (name = 'write_coverage' )
5454@click .argument ('profile_file' , type = click .File ('r' ), required = True , nargs = - 1 )
55- @click .option ('--data-file' , required = False , type = click .Path (dir_okay = False ),
55+ @click .option ('--data-file' , required = False ,
56+ type = click .Path (dir_okay = False , writable = True ),
5657 default = DEFAULT_COVERAGE_DATA_FILE ,
5758 help = ('DATA_FILE to write into. '
5859 u'[default:\xa0 %s]' % DEFAULT_COVERAGE_DATA_FILE ))
@@ -86,12 +87,13 @@ def write_coverage(profile_file, data_file, source, append):
8687 default = True , show_default = True ,
8788 help = 'Wrap VIM cmd with options to create a PROFILE_FILE.' )
8889@click .option ('--profile-file' , required = False , metavar = 'PROFILE_FILE' ,
89- type = click .Path (dir_okay = False ), help = (
90+ type = click .Path (dir_okay = False , writable = True ), help = (
9091 'File name for the PROFILE_FILE file '
9192 '(get overwritten, but not removed). '
9293 'By default a temporary file is used '
9394 '(and removed after processing).' ))
94- @click .option ('--data-file' , required = False , type = click .Path (dir_okay = False ),
95+ @click .option ('--data-file' , required = False ,
96+ type = click .Path (dir_okay = False , writable = True ),
9597 default = DEFAULT_COVERAGE_DATA_FILE ,
9698 help = ('DATA_FILE to write into. '
9799 u'[default:\xa0 %s]' % DEFAULT_COVERAGE_DATA_FILE ))
0 commit comments