Skip to content

Commit

Permalink
allow access to variables with shorter handler
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Oct 22, 2024
1 parent 66b1559 commit c73a371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refinery/lib/argformats.py
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ def _interpret_variable(self, name: str, obj: Any):
return obj
raise ArgumentTypeError(F'The meta variable {name} is of type {type(obj).__name__} and no conversion is known.')

@handler.register('var', final=True)
@handler.register('?', 'var', final=True)
def var(self, name: str) -> bytes:
"""
The final handler `var:name` contains the value of the meta variable `name`.
Expand Down

0 comments on commit c73a371

Please sign in to comment.