wizlib 3.1.1__tar.gz → 3.1.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.

Potentially problematic release.


This version of wizlib might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizlib
3
- Version: 3.1.1
3
+ Version: 3.1.2
4
4
  Summary: Framework for flexible and powerful command-line applications
5
5
  License: MIT
6
6
  Author: Steampunk Wizard
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "wizlib"
3
- version = "3.1.1"
3
+ version = "3.1.2"
4
4
  description = "Framework for flexible and powerful command-line applications"
5
5
  authors = ["Steampunk Wizard <wizlib@steampunkwizard.ca>"]
6
6
  license = "MIT"
@@ -110,3 +110,8 @@ class WizApp:
110
110
  print()
111
111
  if command.status:
112
112
  print(command.status, file=sys.stderr)
113
+
114
+ def parse_run(self, *args):
115
+ """For testing, parse just the command part and tun"""
116
+ ns = self.parser.parse_args(args)
117
+ self.run(**vars(ns))
@@ -5,4 +5,5 @@ class SuperWrapper:
5
5
  def wrapper(self, *args, **kwargs):
6
6
  parent_method = getattr(parent_class, method.__name__)
7
7
  return parent_method(self, method, *args, **kwargs)
8
+ wrapper.__name__ = method.__name__
8
9
  return wrapper
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