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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: preparse
3
- Version: 0.0.1.dev2
3
+ Version: 0.0.2
4
4
  Summary: preparse arguments
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
@@ -25,7 +25,7 @@ keywords = []
25
25
  name = "preparse"
26
26
  readme = "README.rst"
27
27
  requires-python = ">=3.8"
28
- version = "0.0.1.dev2"
28
+ version = "0.0.2"
29
29
 
30
30
  [project.license]
31
31
  file = "LICENSE.txt"
@@ -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 = p.clickCommand(cmd)
166
+ p.clickCommand(cmd)
167
167
  if self.ctx:
168
- p = p.clickContext(ctx)
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: preparse
3
- Version: 0.0.1.dev2
3
+ Version: 0.0.2
4
4
  Summary: preparse arguments
5
5
  Author-email: Johannes <johannes-programming@mailfence.com>
6
6
  License: The MIT License (MIT)
File without changes
File without changes
File without changes
File without changes