superparsing 0.2.2__tar.gz → 0.3.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {superparsing-0.2.2 → superparsing-0.3.0}/PKG-INFO +1 -1
- {superparsing-0.2.2 → superparsing-0.3.0}/pyproject.toml +1 -1
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SuperParser.py +8 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/PKG-INFO +1 -1
- {superparsing-0.2.2 → superparsing-0.3.0}/LICENSE.txt +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/MANIFEST.in +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/README.rst +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/run_tests.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/setup.cfg +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/__init__.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SubCommand.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SuperFlag.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/SuperParseError.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/core/__init__.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing/py.typed +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/SOURCES.txt +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/dependency_links.txt +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/src/superparsing.egg-info/top_level.txt +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_0.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestParseArgs.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSubCommand.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSuperFlag.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSuperParserBasics.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_comprehensive_TestSuperParserText.py +0 -0
- {superparsing-0.2.2 → superparsing-0.3.0}/tests/test_patch.py +0 -0
|
@@ -21,6 +21,7 @@ ARGS_MESSAGE: Final[str] = (
|
|
|
21
21
|
|
|
22
22
|
@dataclass
|
|
23
23
|
class SuperParser:
|
|
24
|
+
description: object = field(default=None, kw_only=True)
|
|
24
25
|
fromfile_prefix_chars: object = field(default="", kw_only=True)
|
|
25
26
|
helpFlag: SuperFlag = field(
|
|
26
27
|
default_factory=partial(SuperFlag, help="print this message and exit"),
|
|
@@ -33,6 +34,12 @@ class SuperParser:
|
|
|
33
34
|
kw_only=True,
|
|
34
35
|
)
|
|
35
36
|
|
|
37
|
+
def _description(self: Self) -> Optional[str]:
|
|
38
|
+
if self.description is None:
|
|
39
|
+
return None
|
|
40
|
+
else:
|
|
41
|
+
return str(self.description)
|
|
42
|
+
|
|
36
43
|
def _keys_message(self: Self) -> Optional[str]:
|
|
37
44
|
ans: str
|
|
38
45
|
help_intro: str
|
|
@@ -87,6 +94,7 @@ class SuperParser:
|
|
|
87
94
|
if intro is not None:
|
|
88
95
|
return intro
|
|
89
96
|
ans = list()
|
|
97
|
+
ans.append(self._description())
|
|
90
98
|
ans.append(self.usage())
|
|
91
99
|
ans.append(self._keys_message())
|
|
92
100
|
ans.append(self._subCommands_message())
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|