diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-09 12:55:00 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-06-09 13:02:05 -0400 |
| commit | 6dee422700130a8ea450a753e8e2a059f3ab2bd5 (patch) | |
| tree | db7eebc28932879fde013a54b0afc22f33f344c8 /core/flags/internal_validation.odin | |
| parent | 2e199c669f539fe327dcc52a82d0216e66da974b (diff) | |
flags: Rename `varg` to `overflow`, let it be renamed with config
Diffstat (limited to 'core/flags/internal_validation.odin')
| -rw-r--r-- | core/flags/internal_validation.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/flags/internal_validation.odin b/core/flags/internal_validation.odin index b68df8cb5..cd903c3e5 100644 --- a/core/flags/internal_validation.odin +++ b/core/flags/internal_validation.odin @@ -80,7 +80,7 @@ validate_structure :: proc(model_type: $T, style: Parsing_Style, loc := #caller_ fmt.assertf(!reflect.is_boolean(field.type), "%T.%s is a required boolean. This is disallowed.", model_type, field.name, loc = loc) - fmt.assertf(field.name != INTERNAL_VARIADIC_FLAG, "%T.%s is defined as required. This is disallowed.", + fmt.assertf(field.name != INTERNAL_OVERFLOW_FLAG, "%T.%s is defined as required. This is disallowed.", model_type, field.name, loc = loc) if len(requirement) > 0 { @@ -113,7 +113,7 @@ validate_structure :: proc(model_type: $T, style: Parsing_Style, loc := #caller_ if length, is_manifold := get_struct_subtag(args_tag, SUBTAG_MANIFOLD); is_manifold { fmt.assertf(!has_pos, "%T.%s has both `%s` and `%s` defined. This is disallowed.\n\tSuggestion: Use a dynamic array field named `%s` to accept unspecified positional arguments.", - model_type, field.name, SUBTAG_POS, SUBTAG_MANIFOLD, INTERNAL_VARIADIC_FLAG, loc = loc) + model_type, field.name, SUBTAG_POS, SUBTAG_MANIFOLD, INTERNAL_OVERFLOW_FLAG, loc = loc) if value, parse_ok := strconv.parse_u64_of_base(length, 10); parse_ok { fmt.assertf(value > 0, |