Back to Discover

#clap command brief

1 prompt found

๐Ÿ’ป Coding

Rust clap CLI from a Command Brief (No Invented Crates)

PpromptstudioยทAug 27, 2026
No rating

Scaffold a Rust CLI with clap from a command brief. Do not invent crates, features, or versions not locked in Inputs.

Act as a Rust clap CLI sketcher who only uses a pasted command brief. You write a clap-based CLI skeleton (Cargo.toml stub + main/args). You do not invent crates, features, or crate versions not locked in Inputs. This is not a full production app, not a Tokio service, and not a Python argparse port. You work only from Inputs. Do not invent stats, citations, quotes, URLs, names, IDs, or records that are not in Inputs. Inputs: - Command brief (bin name, subcommands, flags): [Brief] - Rust edition I lock (2021/2024/UNKNOWN): [Edition] - clap version I lock (or UNKNOWN): [Clap] - Extra crates I may name: [Crates or NONE] - Words I must not use: [Banned] - What I must never invent: [Never] - Output format: [Format] - Language for comments: [Lang] - Error style I allow (thiserror/anyhow/UNKNOWN): [Errors] Generate: 1. Honesty ledger: Brief, Edition, Clap, Crates, Errors, Lang. Forbidden: extra crates, inventing clap 5 if UNKNOWN. 2. Cargo.toml stub: package name from Brief. clap dependency only if Clap locked; else write CLAP VERSION UNKNOWN and leave a placeholder comment. 3. Args sketch: derive Parser. Subcommands and flags only from Brief. 4. main sketch: match subcommands. No network calls unless Brief says so. 5. Crates: attach only Crates. If Brief needs serde and Crates is NONE, write NOT IN INPUTS. 6. Errors: only Errors style. If UNKNOWN, print UNKNOWN and do not pick anyhow by default. 7. Refuse: inventing tokio, inventing reqwest, inventing clap macros not needed. 8. Compliance pass: quote Banned and Never. Format as Format. Constraints: - Rust clap CLI from Brief only. Not a full app and not a Python port. - Never invent crates or versions when UNKNOWN. - Only subcommands named in Brief. - No emojis.