Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Change Log

## [Unpublished]

- Fixed
- An issue where no error was thrown when the user does not supply a path

## [0.6.1] - 2025-02-16

- Changed
Expand Down
11 changes: 11 additions & 0 deletions pydoclint/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,17 @@ def main( # noqa: C901
)
ctx.exit(1)

if len(paths) == 0:
click.echo(
click.style(
'You did not specify a path to run pydoclint on.',
fg='red',
bold=True,
),
err=echoAsError,
)
ctx.exit(1)

violationsInAllFiles: dict[str, list[Violation]] = _checkPaths(
quiet=quiet,
exclude=exclude,
Expand Down