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 +1 -1
- fm_weck/cli.py +11 -14
- {fm_weck-1.1.dist-info → fm_weck-1.1.1.dist-info}/METADATA +1 -1
- {fm_weck-1.1.dist-info → fm_weck-1.1.1.dist-info}/RECORD +6 -6
- {fm_weck-1.1.dist-info → fm_weck-1.1.1.dist-info}/WHEEL +0 -0
- {fm_weck-1.1.dist-info → fm_weck-1.1.1.dist-info}/entry_points.txt +0 -0
fm_weck/__init__.py
CHANGED
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
fm_weck/__init__.py,sha256=
|
|
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=
|
|
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=
|
|
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
|
|
File without changes
|