Skip to main content

resolve_delimiter

Function resolve_delimiter 

Source
pub fn resolve_delimiter(path: &str, explicit: Option<u8>) -> u8
Expand description

Resolve which delimiter to use for a given path.

Precedence (highest first):

  1. explicit override (typically from a CLI flag or 2nd arg)
  2. extension auto-detect (.tsv → tab, .psv → pipe)
  3. comma