coreutiles 0.1.0

Core utils in Rust
Documentation
use clap::Parser;

/// Repeatedly output a line with all specified STRINGS, or 'y'.
#[derive(Parser)]
#[command(version, about)]
struct Config {
    strings: Vec<String>,
}

fn main() {
    let conf = Config::parse();
    let mut string = String::new();
    for arg in &conf.strings {
        string.push_str(arg);
    }
    if string.is_empty() {
        string.push('y');
    }
    loop {
        println!("{string}");
    }
}