Skip to content

Add --verbose/-v CLI shortcut for log level#143

Open
ahfoysal wants to merge 1 commit into
OWASP:mainfrom
ahfoysal:ahfoysal-docksec-verbose-flag
Open

Add --verbose/-v CLI shortcut for log level#143
ahfoysal wants to merge 1 commit into
OWASP:mainfrom
ahfoysal:ahfoysal-docksec-verbose-flag

Conversation

@ahfoysal

@ahfoysal ahfoysal commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Hi! I added -v/--verbose support for issue #129.

Changes:

  • Add -v/--verbose to CLI parsing as a short alias.
  • Set DOCKSEC_LOG_LEVEL=INFO when -v/--verbose is used and when DOCKSEC_LOG_LEVEL is not already defined.
  • Preserve any existing DOCKSEC_LOG_LEVEL value (user override wins).
  • Update README with examples and note about verbose logging.
  • Add CLI tests to cover the -v flag behavior.

I kept this focused on docksec/cli.py + docs/tests only, and aligned the log-level behavior with the existing env/CLI-mode setup.

@github-actions github-actions Bot added documentation Improvements or additions to documentation cli Changes to the CLI entry point tests Changes to the test suite labels Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Changes to the CLI entry point documentation Improvements or additions to documentation tests Changes to the test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant