---
yatl_version: 1
title: Add basic clap CLI skeleton
id: 3132nkry
created: 2026-01-26T04:57:16.514475Z
updated: 2026-01-26T05:05:53.421254Z
author: Brian McCallister
priority: high
tags:
- cli
---

Add clap derive-based CLI with basic structure:

```rust
#[derive(Parser)]
struct Cli {
    host_spec: String,           // positional: host source
    #[arg(long)] where_: Option<String>,
    #[arg(long, default_value = "1")] host_col: usize,
    #[arg(long)] host_ptr: Option<String>,
    #[arg(short, long)] output_dir: Option<PathBuf>,
    #[arg(short, long)] keep: bool,
    #[arg(last = true)] command: Vec<String>,
}
```

Just the CLI parsing, no host spec implementation yet. Replace current argv handling with clap.

---
# Log: 2026-01-26T04:57:16Z Brian McCallister

Created task.

---
# Log: 2026-01-26T05:05:53Z Brian McCallister

Closed.
