@@ -52,7 +52,8 @@ def main(ctx, verbose, quiet, loglevel, rcfile):
52
52
53
53
@main .command (name = 'write_coverage' )
54
54
@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 ),
56
57
default = DEFAULT_COVERAGE_DATA_FILE ,
57
58
help = ('DATA_FILE to write into. '
58
59
u'[default:\xa0 %s]' % DEFAULT_COVERAGE_DATA_FILE ))
@@ -86,12 +87,13 @@ def write_coverage(profile_file, data_file, source, append):
86
87
default = True , show_default = True ,
87
88
help = 'Wrap VIM cmd with options to create a PROFILE_FILE.' )
88
89
@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 = (
90
91
'File name for the PROFILE_FILE file '
91
92
'(get overwritten, but not removed). '
92
93
'By default a temporary file is used '
93
94
'(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 ),
95
97
default = DEFAULT_COVERAGE_DATA_FILE ,
96
98
help = ('DATA_FILE to write into. '
97
99
u'[default:\xa0 %s]' % DEFAULT_COVERAGE_DATA_FILE ))
0 commit comments