use clap::{Args, Subcommand as ClapSubcommand};
#[derive(Args, Clone, Debug)]
pub struct Packet {
#[clap(subcommand)]
pub subcommand: PacketSubcommand,
}
#[derive(ClapSubcommand, Clone, Debug)]
pub enum PacketSubcommand {
Decode(Decode),
}
#[derive(Args, Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]
pub struct Decode {
#[clap(
short = 'p',
long = "packet",
help = "The packet to be decoded as a hex string."
)]
pub packet: String,
#[clap(
short = 'n',
long = "nodeid",
help = "The node id of the destination of this packet to determine WHOAREYOU packets as a hex string."
)]
pub node_id: String,
}