0.13.0a6 fix in LetterSubparsers.add_verbose()

This commit is contained in:
Yusur 2026-06-01 11:48:01 +02:00
parent a3a58ac782
commit f222ae8359
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ from .color import OKLabColor, chalk, WebColor, RGBColor, LinearRGBColor, \
from .mat import Matrix from .mat import Matrix
from .argparse import LetterSubparsers from .argparse import LetterSubparsers
__version__ = "0.13.0a5" __version__ = "0.13.0a6"
__all__ = ( __all__ = (
'ColorFormatter', 'ColorFormatter',

View file

@ -46,7 +46,7 @@ class LetterSubparsers(object):
This allows the argument to be everywhere in the argv. This allows the argument to be everywhere in the argv.
""" """
self._parser.add_argument('-v', '--verbose', action='count', help=help) self._parser.add_argument('-v', '--verbose', action='count', default = 0, help=help)
self._has_verbose = True self._has_verbose = True
def action(self, /, letter: str, name: str | None = None, **kwargs): def action(self, /, letter: str, name: str | None = None, **kwargs):