0.13.0a7 make the subparsers in LetterSubparsers() required
This commit is contained in:
parent
f222ae8359
commit
3c85e7427d
2 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ from .color import OKLabColor, chalk, WebColor, RGBColor, LinearRGBColor, \
|
|||
from .mat import Matrix
|
||||
from .argparse import LetterSubparsers
|
||||
|
||||
__version__ = "0.13.0a6"
|
||||
__version__ = "0.13.0a7"
|
||||
|
||||
__all__ = (
|
||||
'ColorFormatter',
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ class LetterSubparsers(object):
|
|||
def __init__(self, parser : argparse.ArgumentParser, *, dest: str = 'action', **kwargs):
|
||||
self._parser = parser
|
||||
self._letters = {}
|
||||
self._subparsers = parser.add_subparsers(dest = dest, **kwargs)
|
||||
self._subparsers = parser.add_subparsers(dest = dest, required = True, **kwargs)
|
||||
|
||||
def add_verbose(self, *, help: str = "show more logs (e.g. debug)"):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue