pho 1.0.5

PHOnetic alphabet renderer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Parser;
use pho::render;

#[derive(Parser)]
#[command(author, version, about, long_about = None)]
#[command(propagate_version = true)]
struct Cli {
    text: Vec<String>,
    #[arg(short, long, env = "PHO_SEP", default_value_t = ' ')]
    sep: char,
}

pub fn main() {
    let cli = Cli::parse();
    let sep = format!("{}", cli.sep);
    println!("{}", render(cli.text.join(&sep), sep))
}