Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions covimerage/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def main(ctx, verbose, quiet, loglevel, rcfile):

@main.command(name='write_coverage')
@click.argument('profile_file', type=click.File('r'), required=True, nargs=-1)
@click.option('--data-file', required=False, type=click.Path(dir_okay=False),
@click.option('--data-file', required=False,
type=click.Path(dir_okay=False, writable=True),
default=DEFAULT_COVERAGE_DATA_FILE,
help=('DATA_FILE to write into. '
u'[default:\xa0%s]' % DEFAULT_COVERAGE_DATA_FILE))
Expand Down Expand Up @@ -86,12 +87,13 @@ def write_coverage(profile_file, data_file, source, append):
default=True, show_default=True,
help='Wrap VIM cmd with options to create a PROFILE_FILE.')
@click.option('--profile-file', required=False, metavar='PROFILE_FILE',
type=click.Path(dir_okay=False), help=(
type=click.Path(dir_okay=False, writable=True), help=(
'File name for the PROFILE_FILE file '
'(get overwritten, but not removed). '
'By default a temporary file is used '
'(and removed after processing).'))
@click.option('--data-file', required=False, type=click.Path(dir_okay=False),
@click.option('--data-file', required=False,
type=click.Path(dir_okay=False, writable=True),
default=DEFAULT_COVERAGE_DATA_FILE,
help=('DATA_FILE to write into. '
u'[default:\xa0%s]' % DEFAULT_COVERAGE_DATA_FILE))
Expand Down