diff --git a/yaclog/cli/__main__.py b/yaclog/cli/__main__.py index e5bee66..6133af3 100644 --- a/yaclog/cli/__main__.py +++ b/yaclog/cli/__main__.py @@ -25,7 +25,7 @@ from yaclog.changelog import Changelog @click.group() -@click.option('--path', envvar='YACLOG_PATH', default='CHANGELOG.md', show_default=True, +@click.option('--path', envvar='YACLOG_PATH', metavar='FILE', default='CHANGELOG.md', show_default=True, type=click.Path(dir_okay=False, writable=True, readable=True), help='Location of the changelog file.') @click.version_option()