nodeagg 0.2.0

Expand nodeset expression
Documentation
use clap::Parser;
use nodeagg::Nodeagg;

/// Print node list
#[derive(Parser, Debug)]
#[clap(version, about, long_about = None)]
struct Args {
    /// Expand Command
    #[arg(short, long)]
    expand: bool,

    #[arg(short = 'S', long, default_value = " ")]
    separator: String,

    #[arg(name = "Operations or Node names")]
    ops: Nodeagg,
}

fn main() {
    let args = Args::parse();
    if args.expand {
        println!(
            "{}",
            args.ops.iter().collect::<Vec<_>>().join(&args.separator)
        );
    } else {
        eprintln!("Please specify Command");
        std::process::exit(22);
    }
}