Add global quiet and verbose flags#17
Conversation
a-sekka
left a comment
There was a problem hiding this comment.
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!
|
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
| 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
Summary
Changes
Fixes #5