extern crate zalgo; use std::env; use zalgo::{Generator, GeneratorArgs, ZalgoSize}; // A bin for generating a binary that can take text as an input and output // zalgo'd text. // // To use this, simply run `cargo run --bin zalgo`. // // Pass argument like so: // // `cargo run --bin zalgo your text here`. fn main() { let args = env::args() .skip(1) .collect::>(); let text = args.join(" "); let mut out = String::new(); let args = GeneratorArgs::new(true, false, true, ZalgoSize::Mini); Generator::new().gen(text, &mut out, &args); println!("{}", out); }