Skip to content

Add global quiet and verbose flags#17

Merged
a-sekka merged 2 commits intodatallmhub:mainfrom
cnaples79:add-verbosity-flags
Jan 8, 2026
Merged

Add global quiet and verbose flags#17
a-sekka merged 2 commits intodatallmhub:mainfrom
cnaples79:add-verbosity-flags

Conversation

@cnaples79
Copy link
Contributor

@cnaples79 cnaples79 commented Jan 5, 2026

Summary

  • add global CLI quiet/verbose flags so users can choose errors-only or more detailed output
  • wire verbosity into logging and display helpers to suppress non-error prints when quiet is enabled

Changes

  • introduce -q/--quiet and counted -v/--verbose flags (with -V for version) at the root Typer app
  • configure logging levels based on flags and pass settings to display utilities
  • update display utilities to honor quiet mode and disable progress output when quiet

Fixes #5

a-sekka

This comment was marked as duplicate.

Copy link
Contributor

@a-sekka a-sekka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cnaples79 for this contribution!

Clean implementation of verbosity flags. The change from -v to -V for version is a good practice.

Merged! If you want to contribute more, there are other interesting issues labeled "good first issue".

Welcome!

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

from typing import List, Dict, Any

console = Console()
_verbosity_level = 0

Check notice

Code scanning / CodeQL

Unused global variable Note

The global variable '_verbosity_level' is not used.
def set_verbosity(level: int = 0, quiet: bool = False) -> None:
"""Configure display verbosity and quiet mode."""
global _verbosity_level, _quiet_mode, console
_verbosity_level = level

Check notice

Code scanning / CodeQL

Unused global variable Note

The global variable '_verbosity_level' is not used.
@a-sekka a-sekka merged commit 63ddee1 into datallmhub:main Jan 8, 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.

Add --quiet and --verbose flags globally

2 participants

Comments