preparse 0.0.1.dev2__tar.gz → 0.0.2__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.
- {preparse-0.0.1.dev2/src/preparse.egg-info → preparse-0.0.2}/PKG-INFO +1 -1
- {preparse-0.0.1.dev2 → preparse-0.0.2}/pyproject.toml +1 -1
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse/core/__init__.py +5 -5
- {preparse-0.0.1.dev2 → preparse-0.0.2/src/preparse.egg-info}/PKG-INFO +1 -1
- {preparse-0.0.1.dev2 → preparse-0.0.2}/LICENSE.txt +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/MANIFEST.in +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/README.rst +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/setup.cfg +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse/__init__.py +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse/tests/__init__.py +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse/tests/test_1984.py +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse.egg-info/SOURCES.txt +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse.egg-info/dependency_links.txt +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse.egg-info/requires.txt +0 -0
- {preparse-0.0.1.dev2 → preparse-0.0.2}/src/preparse.egg-info/top_level.txt +0 -0
|
@@ -163,9 +163,9 @@ class Click:
|
|
|
163
163
|
def ans(cmd, ctx, args):
|
|
164
164
|
p = self.parser.copy()
|
|
165
165
|
if self.cmd:
|
|
166
|
-
p
|
|
166
|
+
p.clickCommand(cmd)
|
|
167
167
|
if self.ctx:
|
|
168
|
-
p
|
|
168
|
+
p.clickContext(ctx)
|
|
169
169
|
return target(cmd, ctx, p.parse_args(args))
|
|
170
170
|
|
|
171
171
|
return ans
|
|
@@ -176,11 +176,11 @@ class Click:
|
|
|
176
176
|
return ans
|
|
177
177
|
|
|
178
178
|
def _t(self, target):
|
|
179
|
-
target.parse_args = self._f(target)
|
|
179
|
+
target.parse_args = self._f(target.parse_args)
|
|
180
180
|
return target
|
|
181
181
|
|
|
182
182
|
def _o(self, target):
|
|
183
|
-
target.parse_args = self._m(target)
|
|
183
|
+
target.parse_args = self._m(target.parse_args)
|
|
184
184
|
return target
|
|
185
185
|
|
|
186
186
|
|
|
@@ -214,7 +214,7 @@ class _Parsing:
|
|
|
214
214
|
@functools.cached_property
|
|
215
215
|
def optdict(self):
|
|
216
216
|
ans = dict()
|
|
217
|
-
for k, v in self.parser.items():
|
|
217
|
+
for k, v in self.parser.optdict.items():
|
|
218
218
|
ans[str(k)] = Nargs(v)
|
|
219
219
|
return ans
|
|
220
220
|
|
|
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
|