{"id":57845,"library":"structopt-derive","title":"structopt-derive","description":"Parse command line arguments by defining a struct, derive crate.","status":"active","version":"0.4.18","language":"rust","source_language":null,"source_url":"https://github.com/TeXitoi/structopt","tags":["cli","arguments","derive","structopt"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nstructopt-derive = \"0.4.18\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add structopt-derive","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"StructOpt","correct":"use structopt::StructOpt;"}],"quickstart":{"code":"use structopt::StructOpt;\n\n#[derive(StructOpt)]\nstruct Cli {\n    name: String,\n}\n\nfn main() {\n    let args = Cli::from_args();\n    println!(\"Hello, {}!\", args.name);\n}","lang":"rust","description":"Defines a CLI with a required name argument."},"warnings":[{"fix":"Migrate to clap with `#[derive(Parser)]`.","message":"structopt is deprecated in favor of clap v3 with derive feature.","severity":"breaking","affected_versions":">=0.4.0"}],"env_vars":null,"search_vec":"'argument':7,15 'cli':14 'command':5 'crate':13 'defin':9 'deriv':3,12,16 'line':6 'pars':4 'struct':11 'structopt':2,17 'structopt-der':1","created_at":"2026-06-16T16:00:08.929695+00:00","updated_at":"2026-06-16T16:00:08.929695+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/TeXitoi/structopt","github":"https://github.com/TeXitoi/structopt","docs":"https://docs.rs/structopt-derive/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["cli"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}