Skip to content

fix(tools): fail closed when plot_logs path is not a directory#152

Closed
Bartok9 wants to merge 1 commit into
JacopoPan:mainfrom
Bartok9:feat/plot-logs-dir-guard
Closed

fix(tools): fail closed when plot_logs path is not a directory#152
Bartok9 wants to merge 1 commit into
JacopoPan:mainfrom
Bartok9:feat/plot-logs-dir-guard

Conversation

@Bartok9

@Bartok9 Bartok9 commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Exit early when the log folder argument is not an existing directory.
  • Add -h/--help usage line.

Test plan

  • python3 plot_logs.py /no/such → non-zero with usage
  • python3 plot_logs.py -h → exit 0

AI-assisted; human-reviewed.

@Bartok9
Bartok9 force-pushed the feat/plot-logs-dir-guard branch from ccf3dc3 to b07e590 Compare July 22, 2026 07:16
Exit early with usage when the log folder argument is missing as a
directory instead of hitting empty glob later.
@Bartok9
Bartok9 force-pushed the feat/plot-logs-dir-guard branch from b07e590 to 1f1c78d Compare July 23, 2026 06:26
@JacopoPan JacopoPan closed this Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants