-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Add a CLI flag, --skip-length-validation-and-pad, that bypasses length validation and automatically pads the input with leading zeros to meet the required length. This feature would be beneficial for users who want to ensure inputs meet a specified length requirement without manually adjusting the input.
Proposed Behavior
When the --skip-length-validation-and-pad flag is used:
- Length validation on input should be bypassed.
- If the input is shorter than the required length, it should be padded with leading zeros to meet the length requirement.
- For example, with a required length of 8, an input of
123should be transformed into00000123.
- For example, with a required length of 8, an input of
Use Case
This feature would be particularly useful in cases where input length requirements are enforced but may vary, and users need a quick way to automatically adjust input without additional scripting.
Example Usage
decoder tagsl 15 123 --skip-length-validation-and-pad
# Expected outcome: payload processed as 00000123Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request