fm-weck 1.1__py3-none-any.whl → 1.1.1__py3-none-any.whl

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.
fm_weck/__init__.py CHANGED
@@ -8,4 +8,4 @@
8
8
  from .config import Config # noqa: F401
9
9
  from .image_mgr import ImageMgr # noqa: F401
10
10
 
11
- __version__ = "1.1"
11
+ __version__ = "1.1.1"
fm_weck/cli.py CHANGED
@@ -174,20 +174,17 @@ def parse(raw_args: list[str]) -> Tuple[Callable[[], None], Namespace]:
174
174
  def help_callback():
175
175
  parser.print_help()
176
176
 
177
- try:
178
- parser.parse_args(raw_args)
179
- except SystemExit as e:
180
- _, left_over = parser.parse_known_args(raw_args)
181
-
182
- if not left_over:
183
- # Some unrecoverable error occurred
184
- raise e
185
-
186
- # Find the first offending argument and insert "--" before it
187
- # We do this to allow the user to pass arguments to the fm-tool without
188
- # having to specify the pseudo argument "--"
189
- idx = raw_args.index(left_over[0])
190
- raw_args.insert(idx, "--")
177
+ result, left_over = parser.parse_known_args(raw_args)
178
+
179
+ if not left_over:
180
+ # Parsing went fine
181
+ return help_callback, result
182
+
183
+ # Find the first offending argument and insert "--" before it
184
+ # We do this to allow the user to pass arguments to the fm-tool without
185
+ # having to specify the pseudo argument "--"
186
+ idx = raw_args.index(left_over[0])
187
+ raw_args.insert(idx, "--")
191
188
 
192
189
  return help_callback, parser.parse_args(raw_args)
193
190
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fm-weck
3
- Version: 1.1
3
+ Version: 1.1.1
4
4
  Author-email: Henrik Wachowitz <henrik.wachowitz@ifi.lmu.de>
5
5
  Maintainer-email: Henrik Wachowitz <henrik.wachowitz@ifi.lmu.de>
6
6
  Classifier: Development Status :: 4 - Beta
@@ -1,6 +1,6 @@
1
- fm_weck/__init__.py,sha256=nN88NCpdZVISleeiEKZNzQIEqfhYGseFqAKRwEWWboo,349
1
+ fm_weck/__init__.py,sha256=JmvX_jGKmQ09GVpuyVB9ZmJNcje4Z656BtYxqN5hONk,351
2
2
  fm_weck/__main__.py,sha256=E7z4-9t6To3hbIPjRPu6iW17YCrtqpDSbFSpd9pX4NA,350
3
- fm_weck/cli.py,sha256=b0xU_GBs_7ETRzNfcFBSRfCarVT1Ix8sR0Q7LDLJ0S4,10598
3
+ fm_weck/cli.py,sha256=apqfvp0zqcFKTH0RSKglkxvSd3d9nOmnpsh6E6-3J8I,10499
4
4
  fm_weck/config.py,sha256=E3TZbUv9za6XkuLTBGeuxUjLqYKW6IIz2i_N-N47DVI,3872
5
5
  fm_weck/engine.py,sha256=TIeyCevSjB_PQ5DiYfi7xNjeIRh2CJ636EX5kAY3gKs,7507
6
6
  fm_weck/image_mgr.py,sha256=1lddYSVd4-dILfhMjDo87S5wfW7qeefInJpyV0Jao_4,1375
@@ -123,7 +123,7 @@ fm_weck/resources/fm_tools/wasp-c.yml,sha256=NWEb2vpIBu75kZJdEq0am8Mpi2HFu5nhDI1
123
123
  fm_weck/resources/fm_tools/wit4java.yml,sha256=SukwwE46DsDmZouAwHhr_aaOjxIaeOrIS7o7P4eDWX0,1243
124
124
  fm_weck/resources/fm_tools/witch.yml,sha256=1NtUf5SlXtCTqJZHjENcjqZMMqnKGlb4awSUwBDEvWw,913
125
125
  fm_weck/resources/fm_tools/witnesslint.yml,sha256=Y6A2TXPyjVxZ9Fhmyd7GOKY7x1_jXjshvmrIM4uW96A,3085
126
- fm_weck-1.1.dist-info/METADATA,sha256=SRWhnPT1nNJfhZAYyv9XoI2OtRzSlUe2aNVV4P3wExY,2742
127
- fm_weck-1.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
128
- fm_weck-1.1.dist-info/entry_points.txt,sha256=toWpKCSY1u593MPnI_xW5gnwlnkerP4AvmPQ1s2nPgY,50
129
- fm_weck-1.1.dist-info/RECORD,,
126
+ fm_weck-1.1.1.dist-info/METADATA,sha256=0whpQXhGwHbVo4N4MpeqbfZ_F2JtzFAYb2cad3-GrjM,2744
127
+ fm_weck-1.1.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
128
+ fm_weck-1.1.1.dist-info/entry_points.txt,sha256=toWpKCSY1u593MPnI_xW5gnwlnkerP4AvmPQ1s2nPgY,50
129
+ fm_weck-1.1.1.dist-info/RECORD,,
File without changes