namecase 0.1.0

A tool for converting names to proper case with intelligent handling of special naming conventions.
Documentation
use clap::Parser;
use namecase::{namecase, NamecaseOptions};

#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
struct Args {
    /// The name(s) to process
    #[arg(required = true)]
    names: Vec<String>,

    /// Enable preserve mixed case input (skip processing)
    #[arg(long)]
    enable_preserve_mixed: bool,

    /// Enable lowercase start (preserves prefixes like "von", "van", "de" at beginning)
    #[arg(long)]
    enable_lowercase_start: bool,

    /// Disable Hebrew ben/bat handling
    #[arg(long)]
    disable_hebrew: bool,

    /// Disable Spanish el/la/y capitalization  
    #[arg(long)]
    disable_spanish: bool,

    /// Disable Roman numeral uppercasing
    #[arg(long)]
    disable_roman_numerals: bool,

    /// Disable post-nominal initials preservation
    #[arg(long)]
    disable_postnominal: bool,
}

fn main() {
    let args = Args::parse();
    let options = NamecaseOptions {
        enable_preserve_mixed: args.enable_preserve_mixed,
        enable_lowercase_start: args.enable_lowercase_start,
        disable_hebrew: args.disable_hebrew,
        disable_spanish: args.disable_spanish,
        disable_roman_numerals: args.disable_roman_numerals,
        disable_postnominal: args.disable_postnominal,
    };

    for name in args.names {
        println!("{}", namecase(&name, options));
    }
}