Small changes to dynamic field add command.

This commit is contained in:
Stefan Härter 2023-09-26 19:19:01 +02:00
parent 3402aa10f0
commit fce4916235

View File

@ -94,14 +94,14 @@ sub Configure {
Description => 'Whether to reorder other fields if an occupied order number is chosen. Defaults to 1.',
Required => 0,
HasValue => 1,
ValueRegex => qr/\d/smx,
ValueRegex => qr/^[[0-1]{1}$/smx,
);
$Self->AddOption(
Name => 'valid',
Description => 'Whether the field to add is valid or invalid. Defaults to 1.',
Required => 0,
HasValue => 1,
ValueRegex => qr/\d/smx,
ValueRegex => qr/^[0-1]{1}$/smx,
);
$Self->AddOption(
Name => 'stdin',