typedparser 0.34.3__tar.gz → 0.35.3__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.4
2
2
  Name: typedparser
3
- Version: 0.34.3
3
+ Version: 0.35.3
4
4
  Summary: Extension for python argparse with typehints and typechecks.
5
5
  Author: simon-ging
6
6
  License-Expression: Apache-2.0
@@ -23,7 +23,7 @@ __all__ = [
23
23
  "split_list_for_processing",
24
24
  ]
25
25
 
26
- __version__ = "0.34.3"
26
+ __version__ = "0.35.3"
27
27
 
28
28
 
29
29
  @dataclass
@@ -117,8 +117,18 @@ def add_argument(
117
117
 
118
118
  @define(slots=False) # slots false to allow multi inheritance
119
119
  class VerboseQuietArgs:
120
- verbose: bool = add_argument(shortcut="-v", help="Increase verbosity", action="store_true")
121
- quiet: bool = add_argument(shortcut="-q", help="Reduce verbosity", action="store_true")
120
+ verbose: int = add_argument(
121
+ shortcut="-v",
122
+ help="Increase verbosity, repeat to increase more (-v, -vv, -vvv)",
123
+ action="count",
124
+ default=0,
125
+ )
126
+ quiet: int = add_argument(
127
+ shortcut="-q",
128
+ help="Reduce verbosity, repeat to reduce more (-q, -qq, -qqq)",
129
+ action="count",
130
+ default=0,
131
+ )
122
132
  loglevel: Optional[str] = add_argument(
123
133
  type=str, help="Set log level (DEBUG, INFO, WARNING, ERROR, CRITICAL)"
124
134
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: typedparser
3
- Version: 0.34.3
3
+ Version: 0.35.3
4
4
  Summary: Extension for python argparse with typehints and typechecks.
5
5
  Author: simon-ging
6
6
  License-Expression: Apache-2.0
File without changes
File without changes
File without changes