miller/man
John Kerl 28e28df46f Add opt-in --infer-booleans and --infer-special-floats type-inference flags (#965)
By default, Miller treats "true"/"false" and IEEE special floats like
"Inf", "Infinity", and "NaN" in data files as strings. This adds two
opt-in flags, following the existing -S/-A/-O inference-flag family:

* --infer-booleans: treat "true" and "false" (exactly those spellings,
  matching the DSL's and JSON's boolean literals) as booleans.
* --infer-special-floats: treat "Inf", "Infinity", and "NaN" --
  case-insensitively, with optional leading +/- on the first two -- as
  floats.

Unlike -S/-A/-O, these don't replace the package-level inferrer; they
augment it, so they compose with -A and -O. They intentionally have no
effect with -S/--infer-none, which disables type inference entirely.
Default behavior is unchanged.

Includes unit tests, regression-test cases under
test/cases/io-infer-flags/, and documentation updates.

Addresses #965.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 09:43:58 -04:00
..
Makefile Reorganization of new-in-miller-6 docpage (#750) 2021-11-13 23:18:35 -05:00
manpage.txt Add opt-in --infer-booleans and --infer-special-floats type-inference flags (#965) 2026-07-14 09:43:58 -04:00
mkman.rb Support PPRINT barred input (#1472) 2024-01-20 12:59:12 -05:00
mlr.1 Add opt-in --infer-booleans and --infer-special-floats type-inference flags (#965) 2026-07-14 09:43:58 -04:00