use clap::Parser;
#[derive(Debug, Default, Parser)]
#[command(
name = "ua-tui",
about = "Terminal browser for OPC UA servers",
long_about = None,
after_help = "KEYBOARD SHORTCUTS (inside the TUI):\n \
Tab / Shift+Tab Move focus between widgets (skips disabled ones)\n \
Arrows / j / k Move within the focused widget\n \
Enter Select node (expands/collapses if it has children)\n \
Esc Clear current selection\n \
r Refresh selected node\n \
p Copy browse path of selected node\n \
n Copy NodeId of selected node\n \
v Copy Value attribute of selected node\n \
c Call selected Method (opens input dialog)\n \
Alt+Left/Right Resize tree width (when tree focused)\n \
Alt+Up/Down Resize attrs/refs split or log height (focus-dependent)\n \
q / Ctrl+C Quit (disconnects cleanly first)\n \
? Show in-app help"
)]
pub struct TuiArgs {
#[arg(long, visible_alias = "endpoint", value_name = "URL")]
pub url: Option<String>,
#[arg(long, value_name = "PATH")]
pub path: Option<String>,
}