//! Report the world's single user: root, with UID and GID zero. use clap::Parser; #[derive(Parser)] struct Args { #[arg(short = 'u', long, conflicts_with = "group")] user: bool, #[arg(short = 'g', long)] group: bool, #[arg(short = 'n', long)] name: bool, #[arg(value_parser = ["root", "0"])] account: Option, } fn main() { let args = Args::parse(); println!( "{}", if args.name { "root" } else if args.user || args.group { "0" } else { "uid=0(root) gid=0(root) groups=0(root)" } ); }