use clap::Parser;
use iceoryx2_cli::help_template;
#[derive(Parser, Debug)]
#[command(
name = "iox2",
bin_name = "iox2",
about = "The command-line interface entrypoint to iceoryx2.",
long_about = None,
version = env!("CARGO_PKG_VERSION"),
disable_help_subcommand = true,
arg_required_else_help = false,
help_template = help_template().with_external_command_hint().build(),
)]
pub struct Cli {
#[arg(short, long, help = "List all installed external commands")]
pub list: bool,
#[arg(
short,
long,
help = "Display paths that will be checked for external commands"
)]
pub paths: bool,
#[arg(
hide = true,
required = false,
trailing_var_arg = true,
allow_hyphen_values = true
)]
pub external_command: Vec<String>,
}